Skip to main content

SetMaxTextWidths Method

Sets the array of lengths, which will be applied to each line of text in turn. If the text covers more lines than there are entries in the length array, the last entry is reused as many times as required. The maxTextWidths array overrides the MaxTextWidth property.

Definition​

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

public void SetMaxTextWidths(
double[] maxTextWidths
)

Parameters​

  Double[]
The max text width array

See Also​

Reference​

FormattedText Class
Avalonia.Media Namespace