Exposes a menu item as an accessible object, including child items and popup notifications.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[ComVisible(true)]
public class RadMenuItemAccessibleObject : RadItemAccessibleObject, IReflect, IAccessible, IDisposable
Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectRadItemAccessibleObjectRadMenuItemAccessibleObject...
Implements:
Constructors
Creates an accessible object for a menu item and subscribes to its drop-down open and close events.
public RadMenuItemAccessibleObject(RadMenuItemBase owner)
The menu item represented by this object.
Properties
Gets the menu item's bounds in screen coordinates from its control-bounds location and item size.
public override Rectangle Bounds { get; }
Overrides:
Gets the description assigned to the represented menu item.
public override string Description { get; }
Overrides:
Gets or sets the accessible name assigned to the represented menu item.
public override string Name { get; set; }
Overrides:
Gets the menu item represented by this accessible object.
public override object Owner { get; }
Overrides:
Gets the accessibility object of the control hosting this menu item.
public override AccessibleObject Parent { get; }
Overrides:
Reports the represented element as a menu item.
public override AccessibleRole Role { get; }
Overrides:
Gets the menu item's accessibility state, including focus and checked state when applicable.
public override AccessibleStates State { get; }
Overrides:
Disabled items use the base state. Enabled items are marked focused when selected, otherwise focusable; a checked RadMenuItem adds Checked.
Methods
Removes the owner's drop-down event handlers if the accessible object is finalized without explicit disposal.
protected ~RadMenuItemAccessibleObject()
Unsubscribes from the owner's drop-down events and suppresses finalization.
public void Dispose()
Implements:
Performs the menu item's click action.
public override void DoDefaultAction()
Overrides:
Gets a child menu item's accessible object, loading and laying out the drop-down tree first when it has not been loaded.
public override AccessibleObject GetChild(int index)
The zero-based index in the owner's child-item collection.
Returns:The accessible object for the child item at index.
Overrides:
Gets the number of child menu items.
public override int GetChildCount()
The number of items in the owner's child-item collection.
Overrides: