Skip to main content
A newer version of this page is available. .

TileItemElement.ImageLocation Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[Browsable(false)]
[DXCategory("Appearance")]
public Point ImageLocation { get; set; }

Property Value

Type Description
Point

A Point structure that is the glyph’s position.

Remarks

The ImageLocation specifies the offset for the image content within the current tile element. If the TileItemElement.ImageAlignment 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 ‘Special Offer’ glyph, is manually located using the ImageLocation coordinates:

Tile TextAlignment Manual Example

See Also