Click or drag to resize

FontComponentGetTextLength Method

Returns the text screen width.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public float GetTextLength(
	double fontSize,
	CanvasRenderer forRenderer,
	string text
)

Parameters

fontSize
Type: SystemDouble
forRenderer
Type: NeoAxisCanvasRenderer
text
Type: SystemString
The text.

Return Value

Type: Single
The text screen width.
See Also