BarManagerProperties.BarItemHorzIndent Property
Gets the default horizontal indent between the content and the borders of bar links.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Int32 | -1 | An integer value specifying the number of pixels between the content and the borders of bar links, -1 to calculate the indent automatically. |
Remarks
Use the BarItemVertIndent property to control the horizontal distance between bar item links in your application. BarItemHorzIndent specifies the horizontal indent between links for the bars, for which the Bar.BarItemHorzIndent property is set to -1.
If you set the Bar.BarItemHorzIndent 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 BarItemHorzIndent property is set to -1, the default indent value will be used according to the currently applied paint scheme (BarAndDockingController.PaintStyleName). To get the actual indent, use the BarManagerProperties.GetLinkHorzIndent function.
The BarItemHorzIndent property is not in effect if bars are docked to the right or left edges of a container (form).
The image below displays bars when the BarItemHorzIndent property value is -1.
The next image displays the same bar when the BarItemHorzIndent property is set to 10.