Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 990 Bytes

richtextblockoverflow_maxlines.md

File metadata and controls

31 lines (21 loc) · 990 Bytes
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.RichTextBlockOverflow.MaxLines
winrt property

Microsoft.UI.Xaml.Controls.RichTextBlockOverflow.MaxLines

-description

Gets or sets the maximum lines of text shown in the RichTextBlockOverflow.

-xaml-syntax

<RichTextBlockOverflow MaxLines="int"/>

-property-value

The maximum lines of text shown in the RichTextBlockOverflow. The default is 0, which is a special value that represents "Auto" behavior. The value cannot be negative.

-remarks

Use the MaxLines property to specify the maximum lines of text shown in a text block. The text control will adjust it’s height to show no more than the specified number of lines, regardless of the font size, font style, or text length.

Negative integer values are invalid, and will cause a run-time exception.

-examples

-see-also