TileItemElement.TextAlignment Property

Gets or sets the alignment of the TileItemElement's text content.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll


public TileItemContentAlignment TextAlignment { get; set; }
Public Property TextAlignment As TileItemContentAlignment

Property Value

Type Default Description


A TileItemContentAlignment enumerator value specifying the alignment of the TileItemElement's text content.


Using the TextAlignment property you can place the current TileItemElement's text content at one of nine predefined positions. Additionally, you can utilize the TileItemElement.TextLocation property to apply a text offset and shift the text block from its predefined position. If the TextAlignment property equals Manual, this offset will be counted from the top left corner of a tile.

If text is grouped with the TileItemElement's glyph (the TileItemElement.ImageToTextAlignment property is not none), the TextAlignment property is ignored and the group is arranged according to the TileItemElement.ImageAlignment property. See the Tile Item Structure topic to learn more.

The figure below illustrates a TileItem with five different options of text alignment:

Tile TextAlignment Manual Example

See Also