Skip to main content

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.1.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