Back to Devexpress

TileViewItemOptions.ItemBackgroundImageAlignment Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileviewitemoptions-3cd55d08.md

latest4.1 KB
Original Source

TileViewItemOptions.ItemBackgroundImageAlignment Property

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

Declaration

csharp
[DefaultValue(TileItemContentAlignment.Default)]
[XtraSerializableProperty]
public TileItemContentAlignment ItemBackgroundImageAlignment { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(TileItemContentAlignment.Default)>
Public Property ItemBackgroundImageAlignment As TileItemContentAlignment

Property Value

TypeDefaultDescription
TileItemContentAlignmentDefault

A TileItemContentAlignment enumerator value that specifies the alignment for tile background images.

|

Available values:

Show 11 items

NameDescription
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.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ItemBackgroundImageAlignment
TileView

.OptionsTiles .ItemBackgroundImageAlignment

|

Remarks

You can create background images for your tiles in two different ways:

  • by creating an element bound to the column containing images. In this case, you should select the corresponding image scale mode for this tile element and remove tile paddings (the TileViewItemOptions.ItemPadding property);
  • by assigning a grid column containing an image to the BackgroundImages property accessible via the TileView.ColumnSet property.

The ItemBackgroundImageAlignment property specifies the background image alignment for the second approach. See the Tile View topic to learn more.

See Also

Tile View

TileViewItemOptions Class

TileViewItemOptions Members

DevExpress.XtraGrid.Views.Tile Namespace