Skip to main content
Bar

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

Gallery.ItemCaptionHorizontalAlignment Property

Gets or sets the horizontal alignment of a gallery item’s caption. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public HorizontalAlignment ItemCaptionHorizontalAlignment { get; set; }

#Property Value

Type Description
HorizontalAlignment

A HorizontalAlignment value specifying the horizontal alignment of a gallery item’s caption.

#Remarks

A gallery item consists of the Glyph and Content regions. The Content Region displays a Content Grid that displays the gallery item’s Caption and Description. The ItemCaptionHorizontalAlignment property specifies the horizontal alignment of the item’s caption within the Content Grid’s Caption cell:

GalleryItem_Alignment

To specify the alignment of the Content Grid within the Content Region, see Gallery.ItemContentHorizontalAlignment and Gallery.ItemContentVerticalAlignment.

See Also