BaseLayoutItem.TextLocation Property

Gets or sets the item caption position.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

[DefaultValue(Locations.Default)]
[DXCategory("Text")]
[XtraSerializableProperty]
public virtual Locations TextLocation { get; set; }
<DefaultValue(Locations.Default)>
<DXCategory("Text")>
<XtraSerializableProperty>
Public Overridable Property TextLocation As Locations

Property Value

Type Default Description
Locations

Default

A Locations value that specifies the item caption position.

Remarks

Use the BaseLayoutItem.Text property to set the layout item caption, and the TextLocation property to specify its position. Each layout item type interprets the TextLocation property values differently.

  • LayoutControlItem items place their caption blocks relative to controls hosted inside these items.

  • LayoutControlGroup items align their caption blocks along their sides.

  • TabbedControlGroup items use the TextLocation property to align tab headers along group sides.

The Locations.Default value is equal to Locations.Left if the Right-to-Left Layout mode is off, and Locations.Right otherwise.

See Also