Back to Devexpress

BarItem.Size Property

windowsforms-devexpress-dot-xtrabars-dot-baritem-8fee2dd7.md

latest2.1 KB
Original Source

BarItem.Size Property

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

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[SupportedByBarManager(SupportedByBarManagerKind.Supported)]
[SupportedByRibbon(SupportedByRibbonKind.NonSupported)]
[DXCategory("Layout")]
public virtual Size Size { get; set; }
vb
<SupportedByBarManager(SupportedByBarManagerKind.Supported)>
<SupportedByRibbon(SupportedByRibbonKind.NonSupported)>
<DXCategory("Layout")>
Public Overridable Property Size As Size

Property Value

TypeDescription
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

EditWidth

EditHeight

BarItem Class

BarItem Members

DevExpress.XtraBars Namespace