TileItemElement.ImageToTextAlignment Property
Gets or sets an TileItemElement‘s text position relative to the element’s icon.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.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 element’s TileItemElement.Image position relative to the item element’s TileItemElement.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
A TileItem can contain multiple content blocks stored within the TileItem.Elements collection. Every block can have its own unique icon and text (see the TileItemElement.Text and TileItemElement.Image topics to learn more). Every element’s text region can be grouped with the element’s image. In this case, the TileItemElement.TextAlignment property is ignored and both the text and icon are located according to the TileItemElement.ImageAlignment property. Text and icon are arranged within this element according to the ImageToTextAlignment property. You can also set the margin between an icon and text using the TileItem.ImageToTextIndent property.
See the Tile Item Structure topic to learn more.