Bar.BarItemVertIndent Property

Gets or sets the vertical indent, in pixels, between a bar item link's content and borders.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DefaultValue(-1)]
public virtual int BarItemVertIndent { get; set; }
<DefaultValue(-1)>
Public Overridable Property BarItemVertIndent As Integer

Property Value

Type Default Description
Int32

-1

An integer value that specifies the vertical indent, in pixels, between a bar item link's content and borders. -1 to use the Bar and Docking Controller's BarItemVertIndent setting.

Remarks

The Bar and Docking Controller's PaintStyleName property specifies the style for bars and dock panels: Skin, Office2003, etc. The style determines the horizontal and vertical indent, in pixels, between a bar item link's content and borders.

The Bar and Docking Controller's BarItemHorzIndent and BarItemVertIndent properties allow you to override these settings for a particular application or form.

A bar's BarItemHorzIndent and BarItemVertIndent properties allow you to override the indents for a particular bar.

The image below displays bars when the BarItemHorzIndent property is set to -1 and 10 respectively.

The image below displays bars when the BarItemVertIndent property is set to -1 and 10 respectively.

TIP

To get the actual indent, use the Bar and Docking Controller's GetLinkHorzIndent() and GetLinkVertIndent() methods or a bar's GetLinkHorzIndent() and GetLinkVertIndent() methods.

See Also