Click or drag to resize

CanvasRendererAddTextWordWrap Method (FontComponent, Double, String, Rectangle, EHorizontalAlignment, Boolean, EVerticalAlignment, Double, ColorValue, CanvasRendererAddTextOptions)

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public int AddTextWordWrap(
	FontComponent font,
	double fontSize,
	string text,
	Rectangle rect,
	EHorizontalAlignment horizontalAlign,
	bool alignByWidth,
	EVerticalAlignment verticalAlign,
	double textVerticalIndention,
	ColorValue color,
	CanvasRendererAddTextOptions options = CanvasRendererAddTextOptions.PixelAlign
)

Parameters

font
Type: NeoAxisFontComponent
fontSize
Type: SystemDouble
text
Type: SystemString
rect
Type: NeoAxisRectangle
horizontalAlign
Type: NeoAxisEHorizontalAlignment
alignByWidth
Type: SystemBoolean
verticalAlign
Type: NeoAxisEVerticalAlignment
textVerticalIndention
Type: SystemDouble
color
Type: NeoAxisColorValue
options (Optional)
Type: NeoAxisCanvasRendererAddTextOptions

Return Value

Type: Int32
See Also