TryMeasureCharacters Method
Measures the number of characters that fit into available width.
Definition
Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public bool TryMeasureCharacters(
double availableWidth,
out int length
)
Public Function TryMeasureCharacters (
availableWidth As Double,
<OutAttribute> ByRef length As Integer
) As Boolean
member TryMeasureCharacters :
availableWidth : float *
length : int byref -> bool
Parameters
Return Value
Boolean
true
if characters fit into the available width; otherwise, false
.