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

BarItem.Size Property

Gets or sets the BarItem‘s size. Not supported in Ribbon UI.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[SupportedByBarManager(SupportedByBarManagerKind.Supported)]
[SupportedByRibbon(SupportedByRibbonKind.NonSupported)]
[DXCategory("Layout")]
public virtual Size Size { get; set; }

#Property Value

Type Description
Size

A Size structure that is the BarItem‘s size.

#Remarks

If either dimension (the width or height) of the Size property was not specified, the item calculates the related side automatically.

For the BarEditItem object, you can also use the BarEditItem.EditWidth and BarEditItem.EditHeight properties to set the size of the editor within this item.

Important

The BarItem.Size property is not supported in Ribbon UI.

See Also