Back to Devexpress

TileBarDropDownOptions.AutoHeight Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-tilebardropdownoptions.md

latest3.5 KB
Original Source

TileBarDropDownOptions.AutoHeight Property

Gets or sets whether automatic height/width calculation is enabled for dropdown windows.

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
DefaultBooleanDefault

A value that specifies if automatic height/width calculation is enabled for dropdown windows.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AutoHeight
TileBar

.DropDownOptions .AutoHeight

| | TileBarItem |

.DropDownOptions .AutoHeight

|

Remarks

If the AutoHeight property is set to Default or False and the TileBarDropDownOptions.Height property is 0 , the dropdown window size (the height in the horizontal orientation; the width in the vertical orientation) matches the size of the TileBar control. When required, you can specify a custom height in the horizontal orientation and a custom width in the vertical orientation for the dropdown window with the TileBarDropDownOptions.Height property.

If the AutoHeight property is set to True , the height/width of the dropdown window is adjusted to fit the height/width of the TileBarDropDownContainer assigned to the TileBarItem.DropDownControl property. In this case, the TileBarDropDownOptions.Height property is ignored.

See Also

Height

DropDownControl

Orientation

TileBarDropDownOptions Class

TileBarDropDownOptions Members

DevExpress.XtraBars.Navigation Namespace