Skip to main content
Bar

BarOptions.UseWholeRow Property

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.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