-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.RichTextBlockOverflow.MaxLines |
winrt property |
Gets or sets the maximum lines of text shown in the RichTextBlockOverflow.
<RichTextBlockOverflow MaxLines="int"/>
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.
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.