OptionsMinimizing.CaptionShowMode Property
Gets or sets how to display captions for items with images.
Namespace: DevExpress.XtraBars.Navigation
Assembly: DevExpress.XtraBars.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
CaptionShowMode | Default | Specifies how to display captions for items with images. |
Available values:
Name | Description |
---|---|
Default | Similar to |
None | Hides captions for items with images. If an item does not have an image, displays its caption vertically. |
BelowImage | Displays captions below images. For items without images, displays captions horizontally. |
AboveImage | Displays captions above images. For items without images, displays captions horizontally. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to CaptionShowMode |
---|---|
AccordionControl |
|
Remarks
The CaptionShowMode
property is in effect if at least one accordion item has an image.
The following code sample demonstrates how to display item captions (Text) below images (Image) when the Accordion Control is minimized:
accordionControl1.ViewType = AccordionControlViewType.HamburgerMenu;
accordionControl1.OptionsMinimizing.CaptionShowMode = CaptionShowMode.BelowImage;
accordionControl1.OptionsMinimizing.MinimizedWidth = 60;
The OptionsMinimizing.CaptionImageIndent property allows you to specify an amount of space between images and captions.