Skip to main content

TileItemElement.TextLocation Property

Gets or sets the TileItemElement‘s text content’s position.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Appearance")]
public Point TextLocation { get; set; }

Property Value

Type Description
Point

A Point structure that is the text content’s position.

Remarks

The TextLocation property specifies the offset for the text content within the current element. If the TileItemElement.TextAlignment property is set to Manual, the offset is counted from the tile item’s top left corner. Otherwise, the offset is counted from the alignment location. This behavior allows you to align your text block or an image to a predefined position and then slightly move it.

The figure below illustrates a tile item with five TileItemElements. Four of them are arranged at the corners of the parent tile. The fifth one, containing the ‘Best Price!’ text, is manually located using the TextLocation coordinates:

Tile TextAlignment Manual Example

See Also