TileItem.ImageAlignment Property

Gets or sets the current TileItem's icon position.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Browsable(false)]
[DefaultValue(TileItemContentAlignment.Default)]
[DXCategory("Appearance")]
public TileItemContentAlignment ImageAlignment { get; set; }
<Browsable(False)>
<DefaultValue(TileItemContentAlignment.Default)>
<DXCategory("Appearance")>
Public Property ImageAlignment As TileItemContentAlignment

Property Value

Type Default Description
TileItemContentAlignment

Default

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

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