Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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