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

Declaration

[DXCategory("Appearance")]
public Control CaptionControl { get; set; }
<DXCategory("Appearance")>
Public Property CaptionControl As Control

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