Back to Devexpress

OptionsMinimizing.CaptionShowMode Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-optionsminimizing-37e3aac9.md

latest3.4 KB
Original Source

OptionsMinimizing.CaptionShowMode Property

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

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(CaptionShowMode.Default)]
public CaptionShowMode CaptionShowMode { get; set; }
vb
<DefaultValue(CaptionShowMode.Default)>
Public Property CaptionShowMode As CaptionShowMode

Property Value

TypeDefaultDescription
CaptionShowModeDefault

Specifies how to display captions for items with images.

|

Available values:

NameDescription
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 TypePath 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:

csharp
accordionControl1.ViewType = AccordionControlViewType.HamburgerMenu;
accordionControl1.OptionsMinimizing.CaptionShowMode = CaptionShowMode.BelowImage;
accordionControl1.OptionsMinimizing.MinimizedWidth = 60;
vb
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

OptionsMinimizing Class

OptionsMinimizing Members

DevExpress.XtraBars.Navigation Namespace