Back to Devexpress

BarOptions.RotateWhenVertical Property

windowsforms-devexpress-dot-xtrabars-dot-baroptions.md

latest4.1 KB
Original Source

BarOptions.RotateWhenVertical Property

Gets or sets whether a bar links’ captions are rotated when the bar is vertically docked.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool RotateWhenVertical { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(True)>
Public Overridable Property RotateWhenVertical As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the links’ captions are rotated along with the bar; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to RotateWhenVertical
Bar

.OptionsBar .RotateWhenVertical

|

Remarks

If the RotateWhenVertical property is set to true , the captions of the bar’s links are rotated when the bar is docked to the left or right edge of its container (form). Otherwise, the captions will be displayed in horizontal orientation.

The following table shows the link layout depending on the RotateWhenVertical property.

LayoutImage
Horizontally docked bar
Vertically docked bar ( RotateWhenVertical is false )
Vertically docked bar ( RotateWhenVertical is true )

Note that if a bar’s RotateWhenVertical property is true , editors of BarEditItemLink links are not displayed if a bar is vertically docked.

Edit links can be represented within vertically oriented bars only using captions and/or glyphs. You can perform specific actions when the end-user clicks on these captions or glyphs by handling the BarItem.ItemClick or BarManager.ItemClick event (you can, for instance, invoke a dialog that provides customization facilities, etc).

To make edit links visible within vertically docked bars, set the items’ BarEditItem.VisibleWhenVertical property to true and then do one of the following:

See Also

DockStyle

BarOptions Class

BarOptions Members

DevExpress.XtraBars Namespace