Skip to main content
You are viewing help content for pre-release software. This document and the features it describes are subject to change.
All docs
V24.1

OptionsMinimizing.CaptionShowMode Property

Gets or sets how to display captions for items with images.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.1.dll

Declaration

[DefaultValue(CaptionShowMode.Default)]
public CaptionShowMode CaptionShowMode { get; set; }

Property Value

Type Default Description
CaptionShowMode Default

Specifies how to display captions for items with images.

Available values:

Name Description
Default

Similar to None.

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
.OptionsMinimizing .CaptionShowMode

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:

WinForms Accordion - Images with Captions in Minimized Mode

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.

See Also