TileViewItemOptions.ItemBackgroundImageAlignment Property

Gets or sets the alignment for tile background images.

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v20.2.dll

Declaration

[XtraSerializableProperty]
[DefaultValue(TileItemContentAlignment.Default)]
public TileItemContentAlignment ItemBackgroundImageAlignment { get; set; }

Property Value

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.

Property Paths

You can access this nested property as listed below:

Object Type Path 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