Skip to main content
A newer version of this page is available. .

Bar.GetLinkHorzIndent() Method

Returns the actual horizontal indent between the content and the borders of bar links, measured in pixels.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

public virtual int GetLinkHorzIndent()

Returns

Type Description
Int32

An integer value specifying the number of pixels between the content and the borders of bar links.

Remarks

The GetLinkHorzIndent method allows you to get the actual horizontal indent between the content and the borders of bar links for this bar.

If a bar is docked to the left or right edge of a container (form), the horizontal indent between links is determined by the current paint scheme specified by the BarAndDockingController.PaintStyleName property. Otherwise, the horizontal indent is determined by the Bar.BarItemHorzIndent property. Use this property to set the horizontal indent for the bar. You can also specify the default horizontal indent for all bars via the BarManagerProperties.BarItemHorzIndent property of a Bar and Docking Controllers (Customizing Default View and Behavior Settings). See the Bar.BarItemHorzIndent topic for more information.

See Also