GalleryItemGroup.CaptionAlignment Property

Gets or sets the horizontal alignment of the group caption content.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public GalleryItemGroupCaptionAlignment CaptionAlignment { get; set; }
Public Property CaptionAlignment As GalleryItemGroupCaptionAlignment

Property Value

Type Description
GalleryItemGroupCaptionAlignment

A GalleryItemGroupCaptionAlignment value that specifies the alignment of the group caption content.

Remarks

You can display a string (GalleryItemGroup.Caption) or custom control (GalleryItemGroup.CaptionControl) within a group caption. The CaptionAlignment property allows you to customize the alignment of the group caption content.

Note that the GalleryItemGroupCaptionAlignment.Stretch option is not in effect when a string is displayed within a group caption. When a custom control is displayed within a group caption and the CaptionAlignment property is set to Stretch, the custom control's size is changed to make it occupy the group caption in its entirety.

See Also