Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TileItem.BackgroundImageAlignment Property

Gets or sets the current TileItem‘s background image position.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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:

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.

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

See Also