Back to Devexpress

RadialMenu.SetAutoSize(BarItem, RadialMenuContainerItemAutoSize) Method

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-radialmenu-dot-setautosize-x28-devexpress-dot-xtrabars-dot-baritem-devexpress-dot-xtrabars-dot-ribbon-dot-radialmenucontaineritemautosize-x29.md

latest3.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void SetAutoSize(
    BarItem item,
    RadialMenuContainerItemAutoSize value
)
vb
Public Sub SetAutoSize(
    item As BarItem,
    value As RadialMenuContainerItemAutoSize
)

Parameters

NameTypeDescription
itemBarItem

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.

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

GetAutoSize(BarItem)

SetItemAutoSize(BarLinkContainerItem, RadialMenuContainerItemAutoSize)

GetItemAutoSize(BarLinkContainerItem)

ItemAutoSize

RadialMenu Class

RadialMenu Members

DevExpress.XtraBars.Ribbon Namespace