Skip to main content

TryMeasureCharacters Method

Measures the number of characters that fit into available width.

Definition​

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public bool TryMeasureCharacters(
double availableWidth,
out int length
)

Parameters​

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

Return Value​

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

See Also​

Reference​

ShapedTextRun Class
Avalonia.Media.TextFormatting Namespace