Class
RadMenu

Represents a menu. RadMenu can be horizontal or vertical. You can add, remove, and disable menu items at run-time. It offers full theming support, allowing you to easily construct a variety of stunning visual effects. You can nest any other RadControl within a RadMenu. For example, you can create a menu with an embedded textbox or combobox.

RadMenu is a simple wrapper for the RadMenuElement class.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Menus & Toolbars")]
[DefaultBindingProperty("Items")]
public class RadMenu : RadItemsControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IItemsControl, IMessageListener

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadItemsControlRadMenu

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetIItemsControlILayoutHandlerIMessageListenerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window

Inherited Members RadItemsControl.GetItemsControlImpl()RadItemsControl.CanNavigate(Keys)RadItemsControl.GetSelectedItem()RadItemsControl.SelectItem(RadItem)RadItemsControl.GetNextItem(RadItem, bool)RadItemsControl.GetFirstVisibleItem()RadItemsControl.GetLastVisibleItem()RadItemsControl.SelectNextItem(RadItem, bool)RadItemsControl.SelectFirstVisibleItem()RadItemsControl.SelectLastVisibleItem()RadItemsControl.OnGotFocus(EventArgs)RadItemsControl.OnHandleKeyDown(Message)RadItemsControl.ProcessTabKey(bool)RadItemsControl.CallOnItemDeselected(ItemSelectedEventArgs)RadItemsControl.GetInputElement()RadItemsControl.Select(bool, bool)RadItemsControl.GetChildMnemonicList(ArrayList)RadItemsControl.ChangeSelection(RadItem)RadItemsControl.RollOverItemSelectionRadItemsControl.ProcessKeyboardRadItemsControl.HasKeyboardInputRadItemsControl.ActiveItemsRadItemsControl.ItemSelectedRadItemsControl.ItemDeselectedRadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.SetForeColorThemeOverrides()RadControl.ResetForeColorThemeOverrides()RadControl.OnKeyDown(KeyEventArgs)RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseUp(MouseEventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseWheel(MouseEventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnLostFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnParentChanged(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.WndProc(ref Message)RadControl.OnInvalidated(RadElement)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.IsInputKey(Keys)RadControl.BeginInit()RadControl.EndInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.GetPreferredSize(Size)RadControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.GetRootElementDesiredSize(int, int, int, int)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.TextRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessDialogChar(char)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadMenu()

Initializes a new instance of the RadMenu class. RadMenu can be horizontal or vertical. You can add, remove, and disable menu items at run-time. It offers full theming support, allowing you to easily construct a variety of stunning visual effects. You can nest any other RadControl within a RadMenu. For example, you can create a menu with an embedded textbox or combobox.

Declaration

cs-api-definition
public RadMenu()

Properties

AllItemsEqualHeight

Gets or sets a value indicating whether all menu items will appear with the same height, using the height of the tallest item in the collection.

Declaration

cs-api-definition
[Browsable(true)]
public bool AllItemsEqualHeight { get; set; }

Property Value

bool

AllowMerge

Gets or sets a value indicating whether this menu allows merging with other RadMenu instances to create a unified menu structure.

Declaration

cs-api-definition
public bool AllowMerge { get; set; }

Property Value

bool

AutoSize

Gets or sets a value indicating whether the menu automatically adjusts its size to fit its content.

Declaration

cs-api-definition
public override bool AutoSize { get; set; }

Property Value

bool

Overrides RadControl.AutoSize

BackColor

Gets or sets the background color of the menu. Note that RadMenu consists of multiple visual elements and separate settings are provided to customize their appearance, so this property might be ignored.

Declaration

cs-api-definition
public override Color BackColor { get; set; }

Property Value

Color

Overrides RadControl.BackColor

DefaultSize

Declaration

cs-api-definition
protected override Size DefaultSize { get; }

Property Value

Size

Overrides Control.DefaultSize

Dock

Gets or sets which edge of the parent container the menu is docked to.

Declaration

cs-api-definition
public override DockStyle Dock { get; set; }

Property Value

DockStyle

Overrides Control.Dock

DropDownAnimationEasing

Gets or sets the easing type used for dropdown animations when DropDownAnimationEnabled is true.

Declaration

cs-api-definition
[Browsable(true)]
public RadEasingType DropDownAnimationEasing { get; set; }

Property Value

RadEasingType

DropDownAnimationEnabled

Gets or sets a value indicating whether dropdown animations are enabled when submenu items are displayed.

Declaration

cs-api-definition
[Browsable(true)]
public bool DropDownAnimationEnabled { get; set; }

Property Value

bool

DropDownAnimationFrames

Gets or sets the number of frames used for dropdown animations when DropDownAnimationEnabled is true.

Declaration

cs-api-definition
[Browsable(true)]
public int DropDownAnimationFrames { get; set; }

Property Value

int

IsMainMenu

Gets or sets a value indicating whether this RadMenu handles MDI (Multiple Document Interface) menu functionality and system buttons for child forms.

Declaration

cs-api-definition
[Browsable(true)]
public bool IsMainMenu { get; set; }

Property Value

bool

Items

Gets the collection of root menu items that are displayed in the menu. Root items are top-level menu items that have no parent item and can contain child items as submenus.

Declaration

cs-api-definition
[RadEditItemsAction]
[RadNewItem("Type here", true, true, false)]
[Browsable(true)]
public override RadItemOwnerCollection Items { get; }

Property Value

RadItemOwnerCollection

Overrides RadItemsControl.Items

MenuElement

Gets the instance of RadMenuElement wrapped by this control. RadMenuElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadMenu.

Declaration

cs-api-definition
[Browsable(false)]
public RadMenuElement MenuElement { get; }

Property Value

RadMenuElement

Orientation

Gets or sets the Orientation of menu items, determining whether they are arranged horizontally or vertically.

Declaration

cs-api-definition
[Browsable(true)]
public Orientation Orientation { get; set; }

Property Value

Orientation

StretchItems

Gets or sets a value indicating whether menu items should be stretched to fill the available space in the menu.

Declaration

cs-api-definition
[Browsable(true)]
public bool StretchItems { get; set; }

Property Value

bool

SystemKeyHighlight

Gets or sets a value indicating whether the Alt or F10 keys can be used to highlight and activate the menu for keyboard navigation.

Declaration

cs-api-definition
[Browsable(true)]
public bool SystemKeyHighlight { get; set; }

Property Value

bool

Methods

CallBaseProcessDialogKey(Keys)

Declaration

cs-api-definition
protected override bool CallBaseProcessDialogKey(Keys keyData)

Parameters

keyData

Keys

Returns

bool

Overrides RadItemsControl.CallBaseProcessDialogKey(Keys)

CanProcessItem(RadMenuItemBase)

Declaration

cs-api-definition
protected virtual bool CanProcessItem(RadMenuItemBase menuItem)

Parameters

menuItem

RadMenuItemBase

Returns

bool

CanProcessMnemonic(char)

Determines whether the specified character can be processed as a mnemonic for any menu item.

Declaration

cs-api-definition
public override bool CanProcessMnemonic(char keyData)

Parameters

keyData

char

The character to test for mnemonic processing.

Returns

bool

true if the character can be processed as a mnemonic; otherwise, false.

Overrides RadItemsControl.CanProcessMnemonic(char)

CreateAccessibilityInstance()

Declaration

cs-api-definition
protected override AccessibleObject CreateAccessibilityInstance()

Returns

AccessibleObject

Overrides Control.CreateAccessibilityInstance()

CreateChildItems(RadElement)

Creates and initializes the child elements of the menu, including the RadMenuElement and its event handlers.

Declaration

cs-api-definition
protected override void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

The parent element to add child elements to.

Overrides RadControl.CreateChildItems(RadElement)

CreateRootElement()

Declaration

cs-api-definition
protected override RootRadElement CreateRootElement()

Returns

RootRadElement

Overrides RadControl.CreateRootElement()

Dispose(bool)

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides RadControl.Dispose(bool)

GetCurrentProcessedItem(IItemsControl)

Declaration

cs-api-definition
protected virtual RadMenuItemBase GetCurrentProcessedItem(IItemsControl itemsControl)

Parameters

itemsControl

IItemsControl

Returns

RadMenuItemBase

GetSysCharItem(IItemsControl, char)

Declaration

cs-api-definition
protected virtual RadMenuItemBase GetSysCharItem(IItemsControl itemsControl, char searchKey)

Parameters

itemsControl

IItemsControl

searchKey

char

Returns

RadMenuItemBase

InitializeRootElement(RootRadElement)

Initializes the root element with default property values for the menu.

Declaration

cs-api-definition
protected override void InitializeRootElement(RootRadElement rootElement)

Parameters

rootElement

RootRadElement

The root element to initialize.

Overrides RadControl.InitializeRootElement(RootRadElement)

MergeMenu(RadMenu)

Merges the specified RadMenu with this menu, combining their menu items according to merge settings.

Declaration

cs-api-definition
public virtual void MergeMenu(RadMenu sourceMenu)

Parameters

sourceMenu

RadMenu

The source RadMenu to merge into this menu.

Exceptions

ArgumentException

Thrown when attempting to merge a menu with itself.

OnAllItemsEqualHeightChanged(EventArgs)

Raises the AllItemsEqualHeightChanged event when the equal height setting for menu items changes.

Declaration

cs-api-definition
protected virtual void OnAllItemsEqualHeightChanged(EventArgs args)

Parameters

args

EventArgs

An EventArgs that contains the event data.

OnHandleCreated(EventArgs)

Called when the control handle is created. Sets up MDI functionality and system button handling if the parent form is an MDI container.

Declaration

cs-api-definition
protected override void OnHandleCreated(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides Control.OnHandleCreated(EventArgs)

OnHandleDestroyed(EventArgs)

Declaration

cs-api-definition
protected override void OnHandleDestroyed(EventArgs e)

Parameters

e

EventArgs

Overrides RadControl.OnHandleDestroyed(EventArgs)

OnItemDeselected(ItemSelectedEventArgs)

Declaration

cs-api-definition
protected override void OnItemDeselected(ItemSelectedEventArgs args)

Parameters

args

ItemSelectedEventArgs

Overrides RadItemsControl.OnItemDeselected(ItemSelectedEventArgs)

OnItemSelected(ItemSelectedEventArgs)

Declaration

cs-api-definition
protected override void OnItemSelected(ItemSelectedEventArgs args)

Parameters

args

ItemSelectedEventArgs

Overrides RadItemsControl.OnItemSelected(ItemSelectedEventArgs)

OnLeave(EventArgs)

Declaration

cs-api-definition
protected override void OnLeave(EventArgs e)

Parameters

e

EventArgs

Overrides Control.OnLeave(EventArgs)

OnLoad(Size)

Notifies that the control is about to be visualized.

Declaration

cs-api-definition
protected override void OnLoad(Size desiredSize)

Parameters

desiredSize

Size

Overrides RadControl.OnLoad(Size)

OnMenuStateChanged(RadMenuState, RadMenuState)

Called when the menu state changes, handling the transition between different RadMenu.RadMenuState values.

Declaration

cs-api-definition
protected virtual void OnMenuStateChanged(RadMenu.RadMenuState oldState, RadMenu.RadMenuState newState)

Parameters

oldState

RadMenu.RadMenuState

The previous RadMenu.RadMenuState.

newState

RadMenu.RadMenuState

The new RadMenu.RadMenuState.

OnMouseDown(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseDown(MouseEventArgs)

OnMouseMove(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseMove(MouseEventArgs)

OnOrientationChanged(EventArgs)

Raises the OrientationChanged event when the menu orientation changes.

Declaration

cs-api-definition
protected virtual void OnOrientationChanged(EventArgs args)

Parameters

args

EventArgs

An EventArgs that contains the event data.

OnTextOrientationChanged(EventArgs)

Raises the TextOrientationChanged event when the text orientation property value changes.

Declaration

cs-api-definition
protected virtual void OnTextOrientationChanged(EventArgs args)

Parameters

args

EventArgs

An EventArgs that contains the event data.

PerformMouseDown(RadMenuItemBase)

Declaration

cs-api-definition
protected virtual void PerformMouseDown(RadMenuItemBase menuItem)

Parameters

menuItem

RadMenuItemBase

PreprocessMouseEvent(ref Message)

Declaration

cs-api-definition
protected virtual void PreprocessMouseEvent(ref Message msg)

Parameters

msg

Message

ProcessArrowKey(Keys)

Declaration

cs-api-definition
protected override bool ProcessArrowKey(Keys keyCode)

Parameters

keyCode

Keys

Returns

bool

Overrides RadItemsControl.ProcessArrowKey(Keys)

ProcessAutoSizeChanged(bool)

Declaration

cs-api-definition
protected override void ProcessAutoSizeChanged(bool value)

Parameters

value

bool

Overrides RadControl.ProcessAutoSizeChanged(bool)

ProcessCmdKey(ref Message, Keys)

Declaration

cs-api-definition
protected override bool ProcessCmdKey(ref Message m, Keys keyData)

Parameters

m

Message

keyData

Keys

Returns

bool

Overrides RadItemsControl.ProcessCmdKey(ref Message, Keys)

ProcessCodedUIMessage(ref IPCMessage)

Declaration

cs-api-definition
protected override void ProcessCodedUIMessage(ref IPCMessage request)

Parameters

request

IPCMessage

Overrides RadControl.ProcessCodedUIMessage(ref IPCMessage)

ProcessDialogKey(Keys)

Declaration

cs-api-definition
protected override bool ProcessDialogKey(Keys keyData)

Parameters

keyData

Keys

Returns

bool

Overrides RadItemsControl.ProcessDialogKey(Keys)

ProcessFirstStageMnemonicActivation(ref Message, Keys)

Declaration

cs-api-definition
protected virtual bool ProcessFirstStageMnemonicActivation(ref Message m, Keys keyData)

Parameters

m

Message

keyData

Keys

Returns

bool

ProcessFocusRequested(RadElement)

Processes a focus request from the specified element.

Declaration

cs-api-definition
protected override bool ProcessFocusRequested(RadElement element)

Parameters

element

RadElement

The element that requested the focus.

Returns

bool

True if focus is approved, false otherwise.

Overrides RadControl.ProcessFocusRequested(RadElement)

ProcessLeftRightArrowKey(bool)

Declaration

cs-api-definition
protected override bool ProcessLeftRightArrowKey(bool right)

Parameters

right

bool

Returns

bool

Overrides RadItemsControl.ProcessLeftRightArrowKey(bool)

ProcessMnemonic(char)

Declaration

cs-api-definition
protected override bool ProcessMnemonic(char charCode)

Parameters

charCode

char

Returns

bool

Overrides RadControl.ProcessMnemonic(char)

ProcessSecondStageMnemonicActivation(ref Message, Keys)

Declaration

cs-api-definition
protected virtual bool ProcessSecondStageMnemonicActivation(ref Message m, Keys keyData)

Parameters

m

Message

keyData

Keys

Returns

bool

ProcessUpDownArrowKey(bool)

Declaration

cs-api-definition
protected override bool ProcessUpDownArrowKey(bool down)

Parameters

down

bool

Returns

bool

Overrides RadItemsControl.ProcessUpDownArrowKey(bool)

ResetBackColorThemeOverrides()

Declaration

cs-api-definition
protected override void ResetBackColorThemeOverrides()

Overrides RadControl.ResetBackColorThemeOverrides()

SetBackColorThemeOverrides()

Declaration

cs-api-definition
protected override void SetBackColorThemeOverrides()

Overrides RadControl.SetBackColorThemeOverrides()

SetMenuState(RadMenuState)

Sets the current state of the menu for mnemonic and keyboard processing.

Declaration

cs-api-definition
public void SetMenuState(RadMenu.RadMenuState state)

Parameters

state

RadMenu.RadMenuState

The RadMenu.RadMenuState to set for the menu.

UnmergeMenu(RadMenu)

Removes the merge relationship with the specified RadMenu, restoring the original menu structure.

Declaration

cs-api-definition
public void UnmergeMenu(RadMenu src)

Parameters

src

RadMenu

The source RadMenu to unmerge from this menu.

Events

AllItemsEqualHeightChanged

Occurs when the AllItemsEqualHeight property value changes, indicating a change in the height uniformity setting for menu items.

Declaration

cs-api-definition
public event EventHandler AllItemsEqualHeightChanged

Event Value

EventHandler

OrientationChanged

Occurs when the Orientation property value changes, indicating a change in the layout direction of menu items.

Declaration

cs-api-definition
public event EventHandler OrientationChanged

Event Value

EventHandler

TextOrientationChanged

Occurs when the text orientation property value changes, affecting how text is displayed within menu items.

Declaration

cs-api-definition
public event EventHandler TextOrientationChanged

Event Value

EventHandler

In this article
DefinitionConstructorsRadMenu()PropertiesAllItemsEqualHeightAllowMergeAutoSizeBackColorDefaultSizeDockDropDownAnimationEasingDropDownAnimationEnabledDropDownAnimationFramesIsMainMenuItemsMenuElementOrientationStretchItemsSystemKeyHighlightMethodsCallBaseProcessDialogKey(Keys)CanProcessItem(RadMenuItemBase)CanProcessMnemonic(char)CreateAccessibilityInstance()CreateChildItems(RadElement)CreateRootElement()Dispose(bool)GetCurrentProcessedItem(IItemsControl)GetSysCharItem(IItemsControl, char)InitializeRootElement(RootRadElement)MergeMenu(RadMenu)OnAllItemsEqualHeightChanged(EventArgs)OnHandleCreated(EventArgs)OnHandleDestroyed(EventArgs)OnItemDeselected(ItemSelectedEventArgs)OnItemSelected(ItemSelectedEventArgs)OnLeave(EventArgs)OnLoad(Size)OnMenuStateChanged(RadMenuState, RadMenuState)OnMouseDown(MouseEventArgs)OnMouseMove(MouseEventArgs)OnOrientationChanged(EventArgs)OnTextOrientationChanged(EventArgs)PerformMouseDown(RadMenuItemBase)PreprocessMouseEvent(ref Message)ProcessArrowKey(Keys)ProcessAutoSizeChanged(bool)ProcessCmdKey(ref Message, Keys)ProcessCodedUIMessage(ref IPCMessage)ProcessDialogKey(Keys)ProcessFirstStageMnemonicActivation(ref Message, Keys)ProcessFocusRequested(RadElement)ProcessLeftRightArrowKey(bool)ProcessMnemonic(char)ProcessSecondStageMnemonicActivation(ref Message, Keys)ProcessUpDownArrowKey(bool)ResetBackColorThemeOverrides()SetBackColorThemeOverrides()SetMenuState(RadMenuState)UnmergeMenu(RadMenu)EventsAllItemsEqualHeightChangedOrientationChangedTextOrientationChanged
Not finding the help you need?
Contact Support