Back to Devexpress

TileItem.BackgroundImageAlignment Property

windowsforms-devexpress-dot-xtraeditors-dot-tileitem-20859af2.md

latest4.1 KB
Original Source

TileItem.BackgroundImageAlignment Property

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(TileItemContentAlignment.Default)]
[DXCategory("Appearance")]
public TileItemContentAlignment BackgroundImageAlignment { get; set; }
vb
<DefaultValue(TileItemContentAlignment.Default)>
<DXCategory("Appearance")>
Public Property BackgroundImageAlignment As TileItemContentAlignment

Property Value

TypeDefaultDescription
TileItemContentAlignmentDefault

A TileItemContentAlignment enumerator value that specifies the current TileItem‘s background image position.

|

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.

|

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

BackgroundImage

BackgroundImageScaleMode

Tile Item Structure

Tile Animation

TileItem Class

TileItem Members

DevExpress.XtraEditors Namespace