Back to Devexpress

ITileContainerDefaultProperties.ItemBackgroundImageAlignment Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-windowsui-dot-itilecontainerdefaultproperties-87abd492.md

latest4.3 KB
Original Source

ITileContainerDefaultProperties.ItemBackgroundImageAlignment Property

Gets or sets the background image position for all Tiles within the current TileContainer.

Namespace : DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
TileItemContentAlignment? ItemBackgroundImageAlignment { get; set; }
vb
Property ItemBackgroundImageAlignment As TileItemContentAlignment?

Property Value

TypeDescription
Nullable<TileItemContentAlignment>

A TileItemContentAlignment enumerator value that specifies the background image position for all Tiles within the current TileContainer.

|

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

A Tile’s background image is specified via the BaseTile.BackgroundImage property. The ItemBackgroundImageAlignment property specifies the alignment of background images common to all Tiles within the current Tile Container. Use the Properties.BackgroundImageAlignment property to override these default settings for individual Tiles.

Besides the alignment, you can also specify the background image’s stretch mode via the ITileContainerDefaultProperties.ItemBackgroundImageScaleMode property.

See Also

ItemBackgroundImageScaleMode

BackgroundImage

ITileContainerDefaultProperties Interface

ITileContainerDefaultProperties Members

DevExpress.XtraBars.Docking2010.Views.WindowsUI Namespace