Skip to main content

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

GalleryItemGroup.CaptionControl Property

Gets or sets a custom control to be displayed within a group caption. This property is only supported for the GalleryControl.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Appearance")]
public Control CaptionControl { get; set; }

#Property Value

Type Description
Control

A custom control to be displayed within a group caption.

#Remarks

Instead of text, you can display a custom control within a group caption. To do this, assign the control to the CaptionControl property. The GalleryItemGroup.Caption property will be ignored.

GalleryControl_CaptionControl

The alignment of the custom control assigned to the CaptionControl property is specified by the GalleryItemGroup.CaptionAlignment property. If this property is set to Stretch, the control is stretched to occupy the group caption in its entirety.

Note

This property is only supported for the GalleryControl.

See Also