Class RadialMenu
Advanced RadialMenu with MenuItems,RadialFontListBox, RadialMenuSlider and RadialColorPalette.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class RadialMenu : PopupControlContainer, IPopupControlContainer, IPopupChild, INeedKeyboardMessages, INeedMouseMoveMessages, IMouseHookHLProcClient, IKeyboardProcHookClient, IPopupParent, IPopupItem, IVisualStyle
Constructors
RadialMenu()
Constuctor of the RadialMenu
Declaration
public RadialMenu()
Properties
AutoScroll
Gets or sets a value indicating whether the container enables the user to scroll to any controls placed outside of its visible boundaries.
Declaration
public override bool AutoScroll { get; set; }
Property Value
Type |
---|
System.Boolean |
AutoSize
Gets or sets the value indicating whether to enable or disable the AutoSize.
Declaration
public bool AutoSize { get; set; }
Property Value
Type |
---|
System.Boolean |
BackColor
Gets or sets the BackColor.
Declaration
public Color BackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BackgroundImage
Overrides the BackgroundImage.
Declaration
public override Image BackgroundImage { get; set; }
Property Value
Type |
---|
System.Drawing.Image |
BackgroundImageLayout
Overrides the BackgroundImageLayout.
Declaration
public override ImageLayout BackgroundImageLayout { get; set; }
Property Value
Type |
---|
System.Windows.Forms.ImageLayout |
BorderStyle
Gets or sets the BorderStyle
Declaration
public BorderStyle BorderStyle { get; set; }
Property Value
Type |
---|
System.Windows.Forms.BorderStyle |
CenterCircleRadiusFactor
Gets or sets the value to the radius of the CenterCircle.
Declaration
public Size CenterCircleRadiusFactor { get; set; }
Property Value
Type |
---|
System.Drawing.Size |
CenterCircleRimColor
Gets or sets the value to the color of the CenterCircleRim.
Declaration
public Color CenterCircleRimColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ContextMenu
Overrides the ContextMenu.
Declaration
public override ContextMenu ContextMenu { get; set; }
Property Value
Type |
---|
System.Windows.Forms.ContextMenu |
ContextMenuStrip
Overrides the ContextMenuStrip.
Declaration
public override ContextMenuStrip ContextMenuStrip { get; set; }
Property Value
Type |
---|
System.Windows.Forms.ContextMenuStrip |
DisplayStyle
Gets or sets the value to the DisplayStyle.
Declaration
public DisplayStyle DisplayStyle { get; set; }
Property Value
Type |
---|
DisplayStyle |
Dock
Overrides the Dock.
Declaration
public override DockStyle Dock { get; set; }
Property Value
Type |
---|
System.Windows.Forms.DockStyle |
DrillDown
Gets or sets the DrillDown type for NextLevelOpening
Declaration
public DrillDown DrillDown { get; set; }
Property Value
Type |
---|
DrillDown |
DrillDownArrowColor
Gets or sets the value to the color of the DrillDownArrow.
Declaration
public Color DrillDownArrowColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
EnableTransition
Gets or sets the value indicating whether to enable the Transition.
Declaration
public bool EnableTransition { get; set; }
Property Value
Type |
---|
System.Boolean |
Font
Gets or sets the System.Drawing.Font value for the control.
Declaration
public override Font Font { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
Overrides
HighlightedArcColor
Gets or sets the value associated with the HighlightedArcColor.
Declaration
public Color HighlightedArcColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Icon
Gets or sets the value to the Icon.
Declaration
public Image Icon { get; set; }
Property Value
Type |
---|
System.Drawing.Image |
ImageCollection
Gets or sets value to the images of the Menus.
Declaration
public ImageCollection ImageCollection { get; set; }
Property Value
Type |
---|
ImageCollection |
ImageList
Gets or sets value to the images of the Menus.
Declaration
public virtual ImageListAdv ImageList { get; set; }
Property Value
Type |
---|
ImageListAdv |
InnerCircleColor
Gets or sets the value associated with the InnerCircleColor.
Declaration
public Color InnerCircleColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ItemOnLoad
Gets or sets value to the load MenuItem.
Declaration
public RadialMenuItem ItemOnLoad { get; set; }
Property Value
Type |
---|
RadialMenuItem |
Items
Gets or sets the value to the items.
Declaration
public RadialMenuItemCollection Items { get; set; }
Property Value
Type |
---|
RadialMenuItemCollection |
MaximumSize
Overrides the MaximumSize.
Declaration
public override Size MaximumSize { get; set; }
Property Value
Type |
---|
System.Drawing.Size |
MenuIcon
Gets or sets value of the MenuIcon.
Declaration
public Image MenuIcon { get; set; }
Property Value
Type |
---|
System.Drawing.Image |
MenuItemImageSize
Gets or sets the image size of all radial menu items in the RadialMenu.
Declaration
public Size MenuItemImageSize { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Size | The System.Drawing.Size that defines the height and width, in pixels, to draw the image in RadialMenuItem. The default size is 24 by 24. |
Remarks
If the ImageSize is defined, setting the MenuItemImageSize property has no effect for particular radial menu item.
See Also
MenuVisibility
Gets or sets the value indicating whether to enable or disable the MenuVisibility.
Declaration
public bool MenuVisibility { get; set; }
Property Value
Type |
---|
System.Boolean |
MinimumSize
Overrides the MinimumSize.
Declaration
public override Size MinimumSize { get; set; }
Property Value
Type |
---|
System.Drawing.Size |
Opacity
Gets or sets the value to the Opacity.
Declaration
public int Opacity { get; set; }
Property Value
Type |
---|
System.Int32 |
OuterArcColor
Gets or sets the value to the color of the OuterArc.
Declaration
public Color OuterArcColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
OuterArcGap
Gets or sets the value associated with the OuterArcGap.
Declaration
public int OuterArcGap { get; set; }
Property Value
Type |
---|
System.Int32 |
OuterArcHighLightedColor
Gets or sets the value to the color of the OuterArc.
Declaration
public Color OuterArcHighLightedColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
OuterRimThickness
Gets or sets the value to the thickness of the OuterRim.
Declaration
public int OuterRimThickness { get; set; }
Property Value
Type |
---|
System.Int32 |
PersistPreviousState
Gets or sets the value indicating whether to enable or disable the PreviousState.
Declaration
public bool PersistPreviousState { get; set; }
Property Value
Type |
---|
System.Boolean |
RightToLeft
Overrides the RightToLeft.
Declaration
public override RightToLeft RightToLeft { get; set; }
Property Value
Type |
---|
System.Windows.Forms.RightToLeft |
RimBackground
Gets or sets the value to the color of the Rim.
Declaration
public Color RimBackground { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ShowToolTip
Gets or sets the value indicating whether to enable or disable the ToolTip.
Declaration
public bool ShowToolTip { get; set; }
Property Value
Type |
---|
System.Boolean |
Style
Gets or sets the style
Declaration
public RadialMenuStyle Style { get; set; }
Property Value
Type |
---|
RadialMenuStyle |
TransitionSpeed
Gets or sets the value to the speed of the transition.
Declaration
public int TransitionSpeed { get; set; }
Property Value
Type |
---|
System.Int32 |
UseIndexBasedOrder
Gets or sets the value indicating whether to enable or disable the sequence menu order.
Declaration
public bool UseIndexBasedOrder { get; set; }
Property Value
Type |
---|
System.Boolean |
WedgeCount
Gets or sets the value to allocate the space for the items.
Declaration
public int WedgeCount { get; set; }
Property Value
Type |
---|
System.Int32 |
Methods
ArgToRadians(Int64)
Converts from "binary radians" to traditional radians.
Declaration
protected static double ArgToRadians(long arg)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | arg | GCI_ROTATE_ANGLE_FROM_ARGUMENT |
Returns
Type | Description |
---|---|
System.Double | Radians |
CreateAccessibilityInstance()
Accessibility object for RadialMenu.
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
---|
System.Windows.Forms.AccessibleObject |
Overrides
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true if managed resources should be disposed; otherwise, false. |
Overrides
OnClick(EventArgs)
Raises the System.Windows.Forms.Control.Click event.
Declaration
protected override void OnClick(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | EventArgs which contains EventData |
OnCloseUp(PopupClosedEventArgs)
Overrides OnCloseUp event.
Declaration
protected override void OnCloseUp(PopupClosedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
PopupClosedEventArgs | args | EventArgs which contains EventData |
Overrides
OnDoubleClick(EventArgs)
Raises the System.Windows.Forms.Control.DoubleClick event.
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | EventArgs which contains EventData |
OnDragEnter(DragEventArgs)
Declaration
protected override void OnDragEnter(DragEventArgs drgevent)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.DragEventArgs | drgevent | DragEventArgs which contains EventData |
OnMouseDoubleClick(MouseEventArgs)
Raises the System.Windows.Forms.Control.MouseDoubleClick event.
Declaration
protected override void OnMouseDoubleClick(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | MouseEventArgs which contains EventData |
OnMouseDown(MouseEventArgs)
Raises the System.Windows.Forms.Control.MouseDown event.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | MouseEventArgs which contains EventData |
OnMouseLeave(EventArgs)
Raises the System.Windows.Forms.Control.MouseLeave event.
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | EventArgs which contains EventData |
OnMouseMove(MouseEventArgs)
Get the current item
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | MouseEventArgs which contains EventData |
OnMouseUp(MouseEventArgs)
Raises the System.Windows.Forms.Control.MouseUp event.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | MouseEventArgs which contains EventData |
OnPaint(PaintEventArgs)
Raises the System.Windows.Forms.Control.Paint event.
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e | PaintEventArgs which contains EventData |
OnSizeChanged(EventArgs)
Overrides OnSizeChanged event.
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | EventArgs which contains EventData |
Overrides
RadialColorPaletteDrillDown(RadialColorPalette)
NextLevelOpening for RadialColorPalette
Declaration
public void RadialColorPaletteDrillDown(RadialColorPalette menuItem)
Parameters
Type | Name | Description |
---|---|---|
RadialColorPalette | menuItem | RadialColorPalette |
RadialColorPaletteNextLevelDrillDowm(RadialColorPalette)
Next level drill down for RadialColorPalette
Declaration
[Obsolete("RadialColorPaletteNextLevelDrillDowm will soon be replaced with RadialColorPaletteNextLevelDrillDown, Use RadialColorPaletteNextLevelDrillDown property instead")]
public void RadialColorPaletteNextLevelDrillDowm(RadialColorPalette menuItem)
Parameters
Type | Name | Description |
---|---|---|
RadialColorPalette | menuItem | RadialColorPalette |
RadialColorPaletteNextLevelDrillDown(RadialColorPalette)
Next level drill down for RadialColorPalette
Declaration
public void RadialColorPaletteNextLevelDrillDown(RadialColorPalette menuItem)
Parameters
Type | Name | Description |
---|---|---|
RadialColorPalette | menuItem | RadialColorPalette |
RadialFontListBoxDrillDown(RadialFontListBox)
NextLevelOpeing for RadialFontListBox
Declaration
public void RadialFontListBoxDrillDown(RadialFontListBox menuItem)
Parameters
Type | Name | Description |
---|---|---|
RadialFontListBox | menuItem | RadialFontListBox |
RadialFontListBoxNextLevelDrillDown(RadialFontListBox)
Next level drill down for RadialFontListBox
Declaration
public void RadialFontListBoxNextLevelDrillDown(RadialFontListBox menuItem)
Parameters
Type | Name | Description |
---|---|---|
RadialFontListBox | menuItem | RadialFontListBox |
RadialMenuItemDrillDown(RadialMenuItem)
NextLevelOpening for RadialMenuItem
Declaration
public void RadialMenuItemDrillDown(RadialMenuItem menuItem)
Parameters
Type | Name | Description |
---|---|---|
RadialMenuItem | menuItem | RadialMenuItem |
RadialMenuItemNextLevelDrillDown(RadialMenuItem)
Next level DrillDown for RadialMenuItem
Declaration
public void RadialMenuItemNextLevelDrillDown(RadialMenuItem menuItem)
Parameters
Type | Name | Description |
---|---|---|
RadialMenuItem | menuItem | RadialMenuItem |
RadialMenuSliderDrillDown(RadialMenuSlider)
NextLevelOpening for RadialMenuSlider
Declaration
public void RadialMenuSliderDrillDown(RadialMenuSlider menuItem)
Parameters
Type | Name | Description |
---|---|---|
RadialMenuSlider | menuItem | RadialMenuSlider |
RadialMenuSliderNextLevelDrillDown(RadialMenuSlider)
Next level drill down for RadialMenuSlider
Declaration
public void RadialMenuSliderNextLevelDrillDown(RadialMenuSlider menuItem)
Parameters
Type | Name | Description |
---|---|---|
RadialMenuSlider | menuItem | RadialMenuSlider |
ResetDrillDown()
Resets the DrillDown property
Declaration
public void ResetDrillDown()
ResetHighLightedArcColor()
Resets the HighlightedArcColor
Declaration
public void ResetHighLightedArcColor()
ResetIcon()
Resets the Icon
Declaration
public void ResetIcon()
ResetInitialImage()
Resets the MenuIcon
Declaration
public void ResetInitialImage()
ResetInnerCircleColor()
Resets the value for InnerCircleColor
Declaration
public void ResetInnerCircleColor()
ResetInnerCircleRadius()
Resets the CenterCircleRadiusFactor
Declaration
public void ResetInnerCircleRadius()
ResetInnerCircleRimColor()
Resets the value for CenterCircleRimColor
Declaration
public void ResetInnerCircleRimColor()
ResetItemImageList()
Resets the ImageList
Declaration
public void ResetItemImageList()
ResetItemOnLoad()
Resets the ItemOnLoad
Declaration
public void ResetItemOnLoad()
ResetItems()
Resets the Items
Declaration
public void ResetItems()
ResetMenuImageCollection()
Resets the ImageCollection
Declaration
public void ResetMenuImageCollection()
ResetMenuVisibility()
Resets the MenuVisibility
Declaration
public void ResetMenuVisibility()
ResetOuterArcColor()
Resets the OuterArcColor
Declaration
public void ResetOuterArcColor()
ResetOuterArcGab()
Resets the OuterArcGab
Declaration
public void ResetOuterArcGab()
ResetOuterOpacity()
Resets the Opacity
Declaration
public void ResetOuterOpacity()
ResetOuterOuterArcHighLightedColor()
Resets the OuterArcHighLightedColor
Declaration
public void ResetOuterOuterArcHighLightedColor()
ResetOuterRimColor()
Resets the value for OuterRimColor
Declaration
public void ResetOuterRimColor()
ResetOuterRimThickness()
Resets the value for OuterRimThickness
Declaration
public void ResetOuterRimThickness()
ResetPersistPreviousSate()
Resets the PersistPreviousSate
Declaration
public void ResetPersistPreviousSate()
ResetRadialMenu()
Resetting RadialMenu properties.
Declaration
public void ResetRadialMenu()
ResetTransitionSpeed()
Resets the value for TransitionSpeed
Declaration
public void ResetTransitionSpeed()
ResetTriangleColor()
Resets the DrillDownArrowColor
Declaration
public void ResetTriangleColor()
ResetUseIndexBasedOrder()
Resets the UseIndexBasedOrder
Declaration
public void ResetUseIndexBasedOrder()
ResetUseTransition()
Resets the value for UseTransition
Declaration
public void ResetUseTransition()
ResetWedgeCount()
Resets the WedgeCount
Declaration
public void ResetWedgeCount()
SetTransparencyKeyColor(Color)
Sets the color for Transparency.
Declaration
public void SetTransparencyKeyColor(Color TransparencyKey)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | TransparencyKey | Color variable |
ShowRadialMenu()
Displaying the RadialMenu in Cursor location
Declaration
public void ShowRadialMenu()
ShowRadialMenu(Point)
Displaying the RadialMenu in defined location
Declaration
public void ShowRadialMenu(Point location)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | location | Location |
StartAngle(Int32)
Menus will be arranged from given Start angle.
Declaration
public void StartAngle(int startAngle)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startAngle | StartAngle of the menus |
WndProc(ref Message)
Overridden. System.Windows.Forms.Control.WndProc().
Declaration
protected override void WndProc(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | m | Implements a Windows message. |
Overrides
Events
MenuVisibilityChanged
Event for MenuVisibilityChanged.
Declaration
public event EventHandler MenuVisibilityChanged
Event Type
Type |
---|
System.EventHandler |
MenuVisibilityChanging
Event for MenuVisibilityChanging.
Declaration
public event StartMenulOpening MenuVisibilityChanging
Event Type
Type |
---|
StartMenulOpening |
NextLevelOpened
Occurs when next menu level is opened.
Declaration
public event NextMenuLevelOpened NextLevelOpened
Event Type
Type |
---|
NextMenuLevelOpened |
NextLevelOpening
Event for NextLevelOpening.
Declaration
public event NextMenuLevelOpening NextLevelOpening
Event Type
Type |
---|
NextMenuLevelOpening |
PreviousLevelOpened
Occurs when previous menu level is opened.
Declaration
public event PreviousMenuLevelOpened PreviousLevelOpened
Event Type
Type |
---|
PreviousMenuLevelOpened |
PreviousLevelOpening
Occurs when previous menu level is opening.
Declaration
public event PreviousMenuLevelOpening PreviousLevelOpening
Event Type
Type |
---|
PreviousMenuLevelOpening |
Explicit Interface Implementations
IVisualStyle.VisualTheme
Gets or sets the VisualTheme.
Declaration
string IVisualStyle.VisualTheme { get; set; }
Returns
Type |
---|
System.String |