Back to Devexpress

TileItemElement.ImageLocation Property

windowsforms-devexpress-dot-xtraeditors-dot-tileitemelement-8a6de26b.md

latest2.4 KB
Original Source

TileItemElement.ImageLocation Property

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DXCategory("Appearance")]
public Point ImageLocation { get; set; }
vb
<Browsable(False)>
<DXCategory("Appearance")>
Public Property ImageLocation As Point

Property Value

TypeDescription
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:

See Also

Text

Image

TextLocation

ImageAlignment

TileItemElement Class

TileItemElement Members

DevExpress.XtraEditors Namespace