Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TileItemElement.ImageLocation Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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