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.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public void SetItemAutoSize(
BarLinkContainerItem item,
RadialMenuContainerItemAutoSize value
)
#Parameters
Name | Type | Description |
---|---|---|
item | Bar |
A Bar |
value | DevExpress. |
A Radial |
#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.