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

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

NuGet Package: DevExpress.Win.Navigation

#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