Skip to main content

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

RadialMenu.SetAutoSize(BarItem, RadialMenuContainerItemAutoSize) Method

Sets whether the specified BarItem is auto-sized when it belongs to a RadialMenu.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void SetAutoSize(
    BarItem item,
    RadialMenuContainerItemAutoSize value
)

#Parameters

Name Type Description
item BarItem

A BarItem object for which the auto-size feature should be specified.

value DevExpress.XtraBars.Ribbon.RadialMenuContainerItemAutoSize

A RadialMenuContainerItemAutoSize enumeration value specifying whether the specified BarItem is auto-sized.

#Remarks

For BarItem objects belonging to a RadialMenu, the SetAutoSize method allows you to set whether the specified BarItem object is auto-sized. To specify whether the auto-size feature is enabled or disabled for all items in a radial menu or sub-menu, use the RadialMenu.ItemAutoSize property and the RadialMenu.SetItemAutoSize method, respectively.

The following image shows a sample RadialMenu where the BarItems captioned Copy and Paste are auto-sized.

RadialMenu_SetAutoSize

To get whether the auto-size feature is enabled or disabled for a specific BarItem, use the RadialMenu.GetAutoSize method.

See RadialMenu.ItemAutoSize to learn more.

See Also