Back to Devexpress

RadialMenu.SetItemAutoSize(BarLinkContainerItem, RadialMenuContainerItemAutoSize) Method

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-radialmenu-dot-setitemautosize-x28-devexpress-dot-xtrabars-dot-barlinkcontaineritem-devexpress-dot-xtrabars-dot-ribbon-dot-radialmenucontaineritemautosize-x29.md

latest4.0 KB
Original Source

RadialMenu.SetItemAutoSize(BarLinkContainerItem, RadialMenuContainerItemAutoSize) Method

Sets whether items contained in the specified BarLinkContainerItem object are auto-sized. This method is in effect when the BarLinkContainerItem belongs to a RadialMenu.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void SetItemAutoSize(
    BarLinkContainerItem item,
    RadialMenuContainerItemAutoSize value
)
vb
Public Sub SetItemAutoSize(
    item As BarLinkContainerItem,
    value As RadialMenuContainerItemAutoSize
)

Parameters

NameTypeDescription
itemBarLinkContainerItem

A BarLinkContainerItem object with which to set whether its items are auto-sized.

| | value | DevExpress.XtraBars.Ribbon.RadialMenuContainerItemAutoSize |

A RadialMenuContainerItemAutoSize enumeration value specifying whether the auto-size feature is enabled or disabled.

|

Remarks

For BarLinkContainerItem objects belonging to the RadialMenu, the SetItemAutoSize method allows you to set whether items contained in the specified BarLinkContainerItem object are auto-sized. The RadialMenuContainerItemAutoSize enumeration provides the following values:

  • Default — the auto-size feature is controlled by the RadialMenu.ItemAutoSize property;
  • Spring — items are auto-sized;
  • None — items are not auto-sized;

The following images show a sample of the radial sub-menu with the disabled and enabled auto-size feature.

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

See RadialMenu.ItemAutoSize to learn more.

See Also

GetItemAutoSize(BarLinkContainerItem)

ItemAutoSize

SetAutoSize(BarItem, RadialMenuContainerItemAutoSize)

GetAutoSize(BarItem)

RadialMenu Class

RadialMenu Members

DevExpress.XtraBars.Ribbon Namespace