Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Bar.BarItemHorzIndent Property

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(-1)]
public virtual int BarItemHorzIndent { get; set; }

#Property Value

Type Default Description
Int32 -1

An integer value that specifies the horizontal indent, in pixels, between a bar item link’s content and borders. -1 to use the bar and dock controller‘s BarItemHorzIndent setting.

#Remarks

The bar and dock controller‘s LookAndFeel property specifies the paint style for bars and dock panels. The style determines the horizontal and vertical indent, in pixels, between a bar item link’s content and borders.

image

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.

image

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

image

See Also