Skip to main content
Tab

RibbonItemBase.Size Property

Specifies the ribbon item size.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(RibbonItemSize.Small)]
public virtual RibbonItemSize Size { get; set; }

Property Value

Type Default Description
RibbonItemSize Small

One of the RibbonItemSize enumeration values.

Available values:

Name Description
Large

An item has a large size.

Small

An item has a small size.

Remarks

Use the Size property to specify the size of the item: large or small. You can specify different images to represent small and large items using the RibbonButtonItem.SmallImage and RibbonButtonItem.LargeImage properties respectively.

ASPxRibbon_ItemSize

Note

If a large item has insufficient space, it is displayed as small item, irrespective of the Size property value. That is why it is recommended to specify both small and large images when setting the Size property to Large.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Size property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also