BarManagerProperties.BarItemVertIndent Property
Gets the default vertical indent between the contents and borders of bar links.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v18.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Int32 | -1 | An integer value specifying the number of pixels between the content and borders of bar links. -1 to calculate the indent automatically. |
Remarks
Use the BarItemVertIndent property to control the vertical distance between bar item links in your application. BarItemVertIndent specifies the vertical indent between links for the bars for which the Bar.BarItemVertIndent property is set to -1.
If you set the Bar.BarItemVertIndent property for an individual bar to a value greater than -1, the links within the bar will be arranged using this indent while ignoring the BarAndDockingController’s setting.
If the BarItemVertIndent property is set to -1, the default indent value is used according to the currently applied paint scheme (BarAndDockingController.PaintStyleName). To get the actual indent, use the BarManagerProperties.GetLinkVertIndent function.
The BarItemVertIndent property is not in effect if bars are docked to the right or left edges of a container (form).
To specify whether bars support the link arrangement within multiple rows, use the BarOptions.MultiLine property.
The image below displays bars when the BarItemVertIndent property is set to -1.
The next image displays the same bars when the BarItemVertIndent property value is 7.