Skip to main content

FormItemBase.TextMargin Property

Gets or sets the gaps between the primary text and other form item elements. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

Declaration

public Thickness TextMargin { get; set; }

Property Value

Type Description
Thickness

An object that specifies the text’s margins.

Remarks

The following example sets margins for text of three form items:

<!-- Applies the same value to all margins: -->
<dxe:FormItem ... 
              TextMargin="20" />

<!-- Specifies horizontal and vertical margins: -->
<dxe:FormItem ... 
              TextMargin="20,10" />

<!-- Specifies left, top, right, and bottom margins: -->
<dxe:FormItem ...
              TextMargin="30,20,30,10" />
See Also