Back to Devexpress

FormItemBase.TextMaxLineCount Property

maui-devexpress-dot-maui-dot-editors-dot-formitembase-25588a92.md

latest1.3 KB
Original Source

FormItemBase.TextMaxLineCount Property

Gets or sets the maximum number of lines the text can occupy. This is a bindable property.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public int TextMaxLineCount { get; set; }

Property Value

TypeDescription
Int32

A positive integer that specifies the number of lines.

|

Example

The markup below adds a text header to a form item and specifies text settings:

xaml
<dxe:FormItem Text="Brightness level"
              TextColor="Gray"
              TextFontAttributes="Bold"
              TextFontFamily="OpenSansRegular"
              TextFontSize="18"
              TextLineBreakMode="CharacterWrap"
              TextMargin="4"
              TextMaxLineCount="2"/>

See Also

FormItemBase Class

FormItemBase Members

DevExpress.Maui.Editors Namespace