Skip to main content
Bar

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

BarOptions.UseWholeRow Property

Gets or sets whether the bar is stretched to match the container’s width.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool UseWholeRow { get; set; }

#Property Value

Type Default Description
Boolean false

true if the bar occupies the entire container’s width; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to UseWholeRow
Bar
.OptionsBar .UseWholeRow

#Remarks

If the UseWholeRow property is set to true, the bar occupies the entire container’s width so that no other bars can be docked to the same bar row.

If this property is false, you can freely move the bar along the bar row and also dock other bars next to the current bar.

The following screenshot shows several bars. For the main menu, status bar and Format bar, UseWholeRow is set to true. For the Standard tool bar, the property is set to false.

Bars3_Bar_UseWholeRow

See Also