Back to Devexpress

InDropDownGallery.SizeMode Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-dot-indropdowngallery-e5874a40.md

latest2.8 KB
Original Source

InDropDownGallery.SizeMode Property

Gets or sets how the Dropdown control that owns the current gallery can be resized.

Namespace : DevExpress.XtraBars.Ribbon.Gallery

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(GallerySizeMode.Default)]
[DXCategory("Layout")]
public GallerySizeMode SizeMode { get; set; }
vb
<DXCategory("Layout")>
<DefaultValue(GallerySizeMode.Default)>
Public Property SizeMode As GallerySizeMode

Property Value

TypeDefaultDescription
GallerySizeModeDefault

A GallerySizeMode value that specifies the current size mode.

|

Available values:

NameDescription
Default

The same as the GallerySizeMode.None option.

| | None |

A dropdown gallery cannot be resized.

| | Vertical |

A dropdown gallery can only be resized vertically.

| | Both |

Allows a dropdown gallery to be resized horizontally and vertically.

|

Remarks

When a Dropdown control that owns a dropdown gallery is opened, its initial size is calculated based on the control’s contents (the contents of the dropdown gallery plus additional commands that have been added to the control’s ItemLinks collection). The SizeMode property can be used to enable the Dropdown control’s resizing feature. If the SizeMode property is set to Both the control can be resized both vertically and horizontally via the size grip displayed at the bottom of the dropdown.

See Also

ColumnCount

RowCount

AutoSize

GalleryDropDown

ShowScrollBar

ItemLinks

InDropDownGallery Class

InDropDownGallery Members

DevExpress.XtraBars.Ribbon.Gallery Namespace