ShapedTextRunTryMeasureCharacters Method
Measures the number of characters that fit into available width.
Namespace: Avalonia.Media.TextFormattingAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
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
- availableWidth Double
- The available width.
- length Int32
- The count of fitting characters.
Booleantrue if characters fit into the available width; otherwise,
false.