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

TileItem.ImageAlignment Property

Gets or sets the current TileItem‘s icon position.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DefaultValue(TileItemContentAlignment.Default)]
[DXCategory("Appearance")]
[SmartTagProperty("Image Alignment", "Appearance", 30)]
public TileItemContentAlignment ImageAlignment { get; set; }

Property Value

Type Default Description
TileItemContentAlignment **Default**

A TileItemContentAlignment enumerator value that specifies the current TileItem‘s icon position.

Available values:

Show 11 items
Name Description
Default

Default content alignment.

TopLeft

Content appears vertically aligned on the top, and horizontally aligned on the left.

TopCenter

Content appears vertically aligned on the top, and horizontally aligned at the center.

TopRight

Content appears vertically aligned on the top, and horizontally aligned on the right.

MiddleLeft

Content appears vertically aligned at the center, and horizontally aligned on the left.

MiddleCenter

Content is horizontally and vertically aligned at the center.

MiddleRight

Content appears vertically aligned at the center, and horizontally aligned on the right.

BottomLeft

Content appears vertically aligned at the bottom, and horizontally aligned on the left.

BottomCenter

Content appears vertically aligned at the bottom, and horizontally aligned at the center.

BottomRight

Content appears vertically aligned at the bottom, and horizontally aligned on the right.

Manual

Indicates that manual text alignment, based on the TileItemElement.TextLocation coordinates, should be used.

Remarks

The TileItem.Image property specifies an image used as a tile’s icon. Depending on the ImageAlignment property value, the icon can have one of nine predefined positions. The TileItem.ImageScaleMode sets the icon’s scale options.

Icon appearance settings, provided via the ImageAlignment and TileItem.ImageScaleMode properties, affect both static tiles and tiles with frame animation.

Since a tile item can have multiple icons provided via the TileItem.Elements collection, the ImageAlignment property affects an image in the first collection item only. To specify other elements’ image alignment, use the TileItemElement.ImageAlignment property instead.

See the Tile Item Structure topic to learn more.

See Also