Class RadMenuItemBase
Represents a base class for the RadMenuItem class.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public abstract class RadMenuItemBase : RadButtonItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement, IHierarchicalItem, IItemsOwner, ISiteProvider
Constructors
RadMenuItemBase()
Initializes a new instance of the RadMenuItemBase class.
Declaration
public RadMenuItemBase()
Fields
IsPopupShownProperty
PopupDirectionProperty
pressedButton
Declaration
protected MouseButtons pressedButton
Field Value
System.Windows.Forms.MouseButtons
|
SelectedProperty
Properties
AccessibleObject
Declaration
public RadMenuItemAccessibleObject AccessibleObject { get; }
Property Value
RadMenuItemAccessibleObject
|
DesignTimeAllowDrop
Declaration
public override bool DesignTimeAllowDrop { get; }
Property Value
System.Boolean
|
Overrides
DropDown
Gets the drop down menu associated with this menu item
Declaration
public RadDropDownMenu DropDown { get; }
Property Value
RadDropDownMenu
|
DropDownHeaderImage
Gets or sets menu header column image
Declaration
public Image DropDownHeaderImage { get; set; }
Property Value
System.Drawing.Image
|
DropDownHeaderText
Gets or sets menu header column text
Declaration
public string DropDownHeaderText { get; set; }
Property Value
System.String
|
HandlesKeyboard
Declaration
public virtual bool HandlesKeyboard { get; set; }
Property Value
System.Boolean
|
HasChildItemsToShow
Gets a values indicating whether this item has child items to show.
Declaration
public virtual bool HasChildItemsToShow { get; }
Property Value
System.Boolean
|
HasChildren
Gets a value indicating whether this item has child items.
Declaration
public bool HasChildren { get; }
Property Value
System.Boolean
|
Implements
HierarchyParent
Gets or sets the parent menu item.
Declaration
public IHierarchicalItem HierarchyParent { get; set; }
Property Value
IHierarchicalItem
|
Implements
IsMainMenuItem
Declaration
public bool IsMainMenuItem { get; set; }
Property Value
System.Boolean
|
IsMdiListItem
This property is used internally!
Declaration
public bool IsMdiListItem { get; set; }
Property Value
System.Boolean
|
IsOnDropDown
Declaration
public bool IsOnDropDown { get; }
Property Value
System.Boolean
|
IsParticipatingInMerge
This property is used internally!
Declaration
public bool IsParticipatingInMerge { get; set; }
Property Value
System.Boolean
|
IsPopupShown
Gets a value indiciating that the popup containing this menu item's children is shown.
Declaration
[RadPropertyDefaultValue("IsPopupShown", typeof(RadMenuItemBase))]
public bool IsPopupShown { get; }
Property Value
System.Boolean
|
IsPreparedForDesignTime
This property is used internally!
Declaration
public bool IsPreparedForDesignTime { get; set; }
Property Value
System.Boolean
|
IsRootItem
Gets a value indicating whether this item is in the root items collection.
Declaration
public bool IsRootItem { get; }
Property Value
System.Boolean
|
Implements
Items
Gets a collection of the child items.
Declaration
public RadItemOwnerCollection Items { get; }
Property Value
RadItemOwnerCollection
|
Implements
MdiList
Declaration
public bool MdiList { get; set; }
Property Value
System.Boolean
|
MergeOrder
Declaration
public int MergeOrder { get; set; }
Property Value
System.Int32
|
MergeType
Declaration
public MenuMerge MergeType { get; set; }
Property Value
System.Windows.Forms.MenuMerge
|
Next
Gets the next child item in the parent item's Items collection.
Declaration
public RadItem Next { get; }
Property Value
RadItem
|
Implements
Owner
Declaration
public object Owner { get; set; }
Property Value
System.Object
|
Implements
OwnerControl
Returns the control that owns this item. This can be a RadMenu or RadDropDownMenu.
Declaration
public virtual Control OwnerControl { get; }
Property Value
System.Windows.Forms.Control
|
PopupDirection
Gets or sets the direction of the popup which is opened by this menu item.
Declaration
public RadDirection PopupDirection { get; set; }
Property Value
RadDirection
|
Previous
Gets the previous child item in the parent item's Items collection.
Declaration
public RadItem Previous { get; }
Property Value
RadItem
|
Implements
RootItem
Selected
Declaration
[RadPropertyDefaultValue("Selected", typeof(RadMenuItemBase))]
public bool Selected { get; set; }
Property Value
System.Boolean
|
ShortcutsHandler
Declaration
protected override IComponentTreeHandler ShortcutsHandler { get; }
Property Value
IComponentTreeHandler
|
Overrides
Methods
AdjustDropDownAlignmentForOrientation()
Declaration
protected virtual void AdjustDropDownAlignmentForOrientation()
AdjustDropDownAlignmentForPopupDirection()
Declaration
protected virtual void AdjustDropDownAlignmentForPopupDirection()
AdjustDropDownAnimations()
Declaration
protected virtual void AdjustDropDownAnimations()
CreateDropDownMenu()
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
EnsureDropDownCreated()
Declaration
protected virtual void EnsureDropDownCreated()
GetClientRectangle(SizeF)
Declaration
protected override RectangleF GetClientRectangle(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.RectangleF
|
Overrides
GetSite()
Declaration
public ISite GetSite()
Returns
System.ComponentModel.ISite
|
Implements
HideChildItems()
Closes the RadMenuItemBase popup.
Declaration
public virtual void HideChildItems()
InitializeFields()
OnBubbleEvent(RadElement, RoutedEventArgs)
Declaration
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
Parameters
RadElement
sender
|
RoutedEventArgs
args
|
Overrides
OnDoubleClick(EventArgs)
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnDropDownClosed(RadPopupClosedEventArgs)
Raises the DropDownClosed event.
Declaration
protected virtual void OnDropDownClosed(RadPopupClosedEventArgs args)
Parameters
RadPopupClosedEventArgs
args
An System.EventArgs that contains the event data. |
OnDropDownClosing(RadPopupClosingEventArgs)
Raises the DropDownClosing event.
Declaration
protected virtual void OnDropDownClosing(RadPopupClosingEventArgs args)
Parameters
RadPopupClosingEventArgs
args
An instance of the RadPopupClosingEventArgs class that contains information about the event. |
OnDropDownCreated()
Declaration
protected virtual void OnDropDownCreated()
OnDropDownOpened(EventArgs)
Raises the DropDownOpened event.
Declaration
protected virtual void OnDropDownOpened(EventArgs args)
Parameters
System.EventArgs
args
An System.EventArgs that contains the event data. |
OnDropDownOpening(CancelEventArgs)
Raises the DropDownOpening event.
Declaration
protected virtual void OnDropDownOpening(CancelEventArgs args)
Parameters
System.ComponentModel.CancelEventArgs
args
An System.EventArgs that contains the event data. |
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
ProcessMnemonic(Char)
Declaration
public override bool ProcessMnemonic(char charCode)
Parameters
System.Char
charCode
|
Returns
System.Boolean
|
Overrides
ShouldSerializeProperty(PropertyDescriptor)
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
|
Returns
System.Nullable<System.Boolean>
|
Overrides
ShowChildItems()
Calls the ShowPopup method and displays the child items in a popup window.
Declaration
public virtual void ShowChildItems()
Events
DropDownClosed
Occurs after the menu item dropdown closes.
Declaration
public event RadPopupClosedEventHandler DropDownClosed
Event Type
RadPopupClosedEventHandler
|
DropDownClosing
Occurs before the popup is closed.
Declaration
public event RadPopupClosingEventHandler DropDownClosing
Event Type
RadPopupClosingEventHandler
|
DropDownCreating
Occurs before the popup is creating.
Declaration
public event RadMenuItemDropDownCreatingEventHandler DropDownCreating
Event Type
RadMenuItemDropDownCreatingEventHandler
|
DropDownOpened
Occurs after the menu item dropdown opens.
Declaration
public event EventHandler DropDownOpened
Event Type
System.EventHandler
|
DropDownOpening
Occurs before the menu item dropdown opens.
Declaration
public event CancelEventHandler DropDownOpening
Event Type
System.ComponentModel.CancelEventHandler
|