Class RadMenuItem
Represents a selectable option displayed on a Rad
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[ComVisible(false)]
[RadNewItem("Add New Item", true)]
public class RadMenuItem : RadMenuItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement, IHierarchicalItem, IItemsOwner, ISiteProvider
Constructors
RadMenuItem()
Initializes a new instance of the RadMenuItem class.
Declaration
public RadMenuItem()
RadMenuItem(String)
Initializes a new instance of the RadMenuItem class using the displayed text.
Declaration
public RadMenuItem(string text)
Parameters
System.
|
RadMenuItem(String, Object)
Initializes a new instance of the RadMenuItem class using the displayed text.
Declaration
public RadMenuItem(string text, object tag)
Parameters
System.
|
System.
|
Fields
ActivateMenuItemCommand
Declaration
public static readonly ActivateMenuItemCommand ActivateMenuItemCommand
Field Value
CheckStateProperty
DescriptionFontProperty
DescriptionTextVisibleProperty
HintTextProperty
ShowArrowProperty
Properties
AccessibleName
Gets or sets the name of the control for use by accessibility client applications.
Declaration
public override string AccessibleName { get; set; }
Property Value
System.
|
Overrides
BorderPrimitive
Gets the BorderPrimitive of RadMenuItem responsible for appearance of the border.
Declaration
public BorderPrimitive BorderPrimitive { get; }
Property Value
CheckOnClick
Gets or sets a value indicating whether a menu item should toggle its CheckState on mouse click.
Declaration
public bool CheckOnClick { get; set; }
Property Value
System.
|
DescriptionFont
Gets or sets the font of the descrition text of the RadMenuItem.
Declaration
[RadPropertyDefaultValue("DescriptionFont", typeof(RadMenuItem))]
public virtual Font DescriptionFont { get; set; }
Property Value
System.
|
DescriptionText
Gets or sets the description text associated with this item.
Declaration
public string DescriptionText { get; set; }
Property Value
System.
|
DescriptionTextVisible
Gets the visibility of description text element
Declaration
public virtual bool DescriptionTextVisible { get; }
Property Value
System.
|
FillPrimitive
Gets the FillPrimitive of RadMenuItem responsible for the background appearance.
Declaration
public FillPrimitive FillPrimitive { get; }
Property Value
HintText
Gets or sets the text that appears as a HintText for a menu item.
Declaration
public string HintText { get; set; }
Property Value
System.
|
ImageIndex
Gets or sets the index value of the image that is displayed on the item.
Declaration
public override int ImageIndex { get; set; }
Property Value
System.
|
Overrides
ImageKey
Gets or sets the key accessor for the image in the ImageList.
Declaration
public override string ImageKey { get; set; }
Property Value
System.
|
Overrides
IsChecked
Gets or sets a value indicating whether the menu item is checked.
Declaration
public virtual bool IsChecked { get; set; }
Property Value
System.
|
Layout
LeftColumnElement
MenuLayout
Declaration
public virtual RadDropDownMenuLayout MenuLayout { get; }
Property Value
MergeIndex
Gets or sets the position of a merged item within the current menu.
Declaration
public int MergeIndex { get; set; }
Property Value
System.
|
RightColumnElement
ShowArrow
Gets or sets if the arrow is shown when the menu item contains sub menu.
Declaration
[RadPropertyDefaultValue("ShowArrow", typeof(RadMenuItem))]
public bool ShowArrow { get; set; }
Property Value
System.
|
TextSeparatorVisibility
Gets or sets the visibility of the separator element between the text and the description text
Declaration
public virtual ElementVisibility TextSeparatorVisibility { get; set; }
Property Value
ToggleState
Gets or sets the Toggle
Declaration
public ToggleState ToggleState { get; set; }
Property Value
Methods
CanHandleShortcut(ShortcutEventArgs)
Declaration
protected override bool CanHandleShortcut(ShortcutEventArgs e)
Parameters
Returns
System.
|
Overrides
CoerceValue(RadPropertyValue, Object)
Declaration
protected override object CoerceValue(RadPropertyValue propVal, object baseValue)
Parameters
Rad
|
System.
|
Returns
System.
|
Overrides
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
GetArrowVisible()
Determines whether the arrow is currently displayed for this item.
Declaration
public bool GetArrowVisible()
Returns
System.
|
InitializeFields()
ItemsChanged(RadItemCollection, RadItem, ItemsChangeOperation)
Declaration
protected virtual void ItemsChanged(RadItemCollection changed, RadItem target, ItemsChangeOperation operation)
Parameters
Rad
|
Rad
|
Items
|
OnBitStateChanged(Int64, Boolean, Boolean)
Declaration
protected override void OnBitStateChanged(long key, bool oldValue, bool newValue)
Parameters
System.
|
System.
|
System.
|
Overrides
OnClick(EventArgs)
Declaration
protected override void OnClick(EventArgs e)
Parameters
System.
|
Overrides
OnDropDownCreated()
Declaration
protected override void OnDropDownCreated()
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnToggleStateChanged(StateChangedEventArgs)
Raises the ToggleStateChanged event.
Declaration
protected virtual void OnToggleStateChanged(StateChangedEventArgs e)
Parameters
OnToggleStateChanging(StateChangingEventArgs)
Raises the ToggleStateChanging event.
Declaration
protected virtual void OnToggleStateChanging(StateChangingEventArgs e)
Parameters
TranslateArrowDirection(RadDirection)
Declaration
protected virtual ArrowDirection TranslateArrowDirection(RadDirection dropdownDirection)
Parameters
Rad
|
Returns
UpdateOnShortcutsChanged()
Declaration
protected override void UpdateOnShortcutsChanged()
Overrides
Events
ToggleStateChanged
Occurs when the item's toggle state changes.
Declaration
public event StateChangedEventHandler ToggleStateChanged
Event Type
ToggleStateChanging
Occurs before the item's toggle state changes.
Declaration
public event StateChangingEventHandler ToggleStateChanging