GalleryItemGroup.CaptionAlignment Property
Gets or sets the horizontal alignment of the group caption content.
Namespace: DevExpress.XtraBars.Ribbon
Assembly: DevExpress.XtraBars.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
GalleryItemGroupCaptionAlignment | A GalleryItemGroupCaptionAlignment value that specifies the alignment of the group caption content. |
Available values:
Name | Description |
---|---|
Left | A gallery group caption’s content is aligned to the left. |
Center | A gallery group caption’s content is centered. |
Right | A gallery group caption’s content is aligned to the right. |
Stretch | A gallery group caption’s content is stretched to the caption width. This option is in effect when a custom control is embedded into the gallery group caption via the GalleryItemGroup.CaptionControl property. |
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.