windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileviewitemoptions-3cd55d08.md
Gets or sets the alignment for tile background images.
Namespace : DevExpress.XtraGrid.Views.Tile
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue(TileItemContentAlignment.Default)]
[XtraSerializableProperty]
public TileItemContentAlignment ItemBackgroundImageAlignment { get; set; }
<XtraSerializableProperty>
<DefaultValue(TileItemContentAlignment.Default)>
Public Property ItemBackgroundImageAlignment As TileItemContentAlignment
| Type | Default | Description |
|---|---|---|
| TileItemContentAlignment | Default |
A TileItemContentAlignment enumerator value that specifies the alignment for tile background images.
|
Available values:
Show 11 items
| Name | Description |
|---|---|
| Default |
Default content alignment.
| | TopLeft |
Content appears vertically aligned on the top, and horizontally aligned on the left.
| | TopCenter |
Content appears vertically aligned on the top, and horizontally aligned at the center.
| | TopRight |
Content appears vertically aligned on the top, and horizontally aligned on the right.
| | MiddleLeft |
Content appears vertically aligned at the center, and horizontally aligned on the left.
| | MiddleCenter |
Content is horizontally and vertically aligned at the center.
| | MiddleRight |
Content appears vertically aligned at the center, and horizontally aligned on the right.
| | BottomLeft |
Content appears vertically aligned at the bottom, and horizontally aligned on the left.
| | BottomCenter |
Content appears vertically aligned at the bottom, and horizontally aligned at the center.
| | BottomRight |
Content appears vertically aligned at the bottom, and horizontally aligned on the right.
| | Manual |
Indicates that manual text alignment, based on the TileItemElement.TextLocation coordinates, should be used.
|
You can access this nested property as listed below:
| Object Type | Path to ItemBackgroundImageAlignment |
|---|---|
| TileView |
.OptionsTiles .ItemBackgroundImageAlignment
|
You can create background images for your tiles in two different ways:
The ItemBackgroundImageAlignment property specifies the background image alignment for the second approach. See the Tile View topic to learn more.
See Also