TileItem.BackgroundImageAlignment Property
Gets or sets the current TileItem‘s background image position.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
[DefaultValue(TileItemContentAlignment.Default)]
[DXCategory("Appearance")]
public TileItemContentAlignment BackgroundImageAlignment { get; set; }
Property Value
Type | Default | Description |
---|---|---|
TileItemContentAlignment | Default | A TileItemContentAlignment enumerator value that specifies the current TileItem‘s background image position. |
Available values:
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. |
Remarks
The TileItem.BackgroundImage specifies an image used as a tile’s background. Depending on the BackgroundImageAlignment property value, the image can have one of nine pre-defined positions. The TileItem.BackgroundImageScaleMode sets the background scale options.
Background image appearance settings, provided via the BackgroundImageAlignment and TileItem.BackgroundImageScaleMode properties, affect both static tiles and tiles with frame animation.
See the Tile Item Structure topic to learn more.