Click or drag to resize

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

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

Parameters

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

Return Value

Type: Int32
See Also