All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
Bar

BarManagerProperties.GetLinkHorzIndent(Single) Method

Returns the actual horizontal indent, in pixels, between a bar item link's content and borders.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public int GetLinkHorzIndent(
    float scaleFactor
)
Public Function GetLinkHorzIndent(
    scaleFactor As Single
) As Integer

Parameters

Name Type Description
scaleFactor Single

The scale factor. The indent is multiplied by the scale factor.

Returns

Type Description
Int32

An integer value that specifies the actual horizontal indent, in pixels, between a bar item link's content and borders.

Remarks

The bar and dock 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 dock controller's BarItemHorzIndent and BarItemVertIndent properties allow you to override these settings for a particular 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 dock controller's GetLinkHorzIndent() and GetLinkVertIndent() methods or a bar's GetLinkHorzIndent() and GetLinkVertIndent() methods.

See Also