Click or drag to resize

CanvasRendererAddTextLines Method (FontComponent, Double, IListString, Vector2, EHorizontalAlignment, EVerticalAlignment, Double, ColorValue, CanvasRendererAddTextOptions)

Adds text lines to rendering queue.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public void AddTextLines(
	FontComponent font,
	double fontSize,
	IList<string> lines,
	Vector2 pos,
	EHorizontalAlignment horizontalAlign,
	EVerticalAlignment verticalAlign,
	double textVerticalIndention,
	ColorValue color,
	CanvasRendererAddTextOptions options = CanvasRendererAddTextOptions.PixelAlign
)

Parameters

font
Type: NeoAxisFontComponent
The font.
fontSize
Type: SystemDouble
lines
Type: System.Collections.GenericIListString
The text lines.
pos
Type: NeoAxisVector2
The text position.
horizontalAlign
Type: NeoAxisEHorizontalAlignment
The text horizontal align.
verticalAlign
Type: NeoAxisEVerticalAlignment
The text vertical align.
textVerticalIndention
Type: SystemDouble
The vertical intention between lines.
color
Type: NeoAxisColorValue
The text color.
options (Optional)
Type: NeoAxisCanvasRendererAddTextOptions
See Also