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.v20.1.dll

Declaration

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

Parameters

Name Type Description
item BarLinkContainerItem

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.

RadialMenu_SetItemAutoSizeDisabled RadialMenu_SetItemAutoSizeEnabled

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