Back to Devexpress

TileItem.ImageToTextAlignment Property

windowsforms-devexpress-dot-xtraeditors-dot-tileitem-8123cc7c.md

latest3.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
TileControlImageToTextAlignmentDefault

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

|

Available values:

NameDescription
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

Text

Image

TextAlignment

ImageAlignment

ImageToTextIndent

Tile Item Structure

TileItem Class

TileItem Members

DevExpress.XtraEditors Namespace