ShapedTextRunTryMeasureCharacters Method

Measures the number of characters that fit into available width.

Definition

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public bool TryMeasureCharacters(
	double availableWidth,
	out int length
)

Parameters

availableWidth  Double
The available width.
length  Int32
The count of fitting characters.

Return Value

Boolean
true if characters fit into the available width; otherwise, false.

See Also