Click or drag to resize

CanvasRendererAddText Method (FontComponent, Double, String, Vector2F, EHorizontalAlignment, EVerticalAlignment, ColorValue, CanvasRendererAddTextOptions)

Adds text to rendering queue.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public abstract void AddText(
	FontComponent font,
	double fontSize,
	string text,
	Vector2F position,
	EHorizontalAlignment horizontalAlign,
	EVerticalAlignment verticalAlign,
	ColorValue color,
	CanvasRendererAddTextOptions options = CanvasRendererAddTextOptions.PixelAlign
)

Parameters

font
Type: NeoAxisFontComponent
The text font.
fontSize
Type: SystemDouble
text
Type: SystemString
The text.
position
Type: NeoAxisVector2F
The text position.
horizontalAlign
Type: NeoAxisEHorizontalAlignment
The text horizontal align.
verticalAlign
Type: NeoAxisEVerticalAlignment
The text vertical align.
color
Type: NeoAxisColorValue
The text color.
options (Optional)
Type: NeoAxisCanvasRendererAddTextOptions
See Also