TileItem.ImageToTextAlignment Property

Gets or sets a tile item's TileItem.Text' position relative to the item's icon. This property is obsolete. Use the TileItemElement.ImageToTextAlignment instead.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.2.dll

Declaration

[Browsable(false)]
[DefaultValue(TileControlImageToTextAlignment.Default)]
[DXCategory("Appearance")]
public TileControlImageToTextAlignment ImageToTextAlignment { get; set; }

Property Value

Type Default Description
TileControlImageToTextAlignment

Default

A TileControlImageToTextAlignment that specifies a tile item's TileItem.Image position relative to the item's TileItem.Text.

Available values:

Name Description
Default

Acts as the TileControlImageToTextAlignment.None value disabling an image-to-text grouping.

None

Disables image-to-text grouping.

Top

Aligns text according to the TileItem.ImageAlignment and places the icon above it.

Left

Aligns text according to the TileItem.ImageAlignment and places the icon to the left.

Right

Aligns text according to the TileItem.ImageAlignment and places the icon to the right.

Bottom

Aligns text according to the TileItem.ImageAlignment and places the icon below it.

Remarks

Since a tile item can have multiple icons provided via the TileItem.Elements collection, the ImageToTextAlignment property groups the image and text of the first collection item only. For this reason, we recommend using the TileItemElement.ImageToTextAlignment property rather than the ImageToTextAlignment property to be able to customize all tile elements.

See Also