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.Offset Property

Gets or sets the offset in pixels from the left or top border of the bar container based on the dock style.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(0)]
[XtraSerializableProperty]
public virtual int Offset { get; set; }

#Property Value

Type Default Description
Int32 0

The offset in pixels from the left or top border of the bar container based on the dock style.

#Remarks

If dock style is left or right, the Offset property contains the offset of the upper bar border from the upper bar container border. Otherwise the Offset property contains the offset of the left bar border from the left bar container border.

DockRow and DockCol

See Also