New to Telerik UI for WinForms? Start a free 30-day trial

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:

C#
[ComVisible(true)]
public class RadMenuItemAccessibleObject : RadItemAccessibleObject, IReflect, IAccessible, IDisposable

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectRadItemAccessibleObjectRadMenuItemAccessibleObject...

Implements: IAccessibleIDisposableIReflect

Constructors

Creates an accessible object for a menu item and subscribes to its drop-down open and close events.

C#
public RadMenuItemAccessibleObject(RadMenuItemBase owner)
Parameters:ownerRadMenuItemBase

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.

C#
public override Rectangle Bounds { get; }

Overrides: AccessibleObject.Bounds

Gets the description assigned to the represented menu item.

C#
public override string Description { get; }

Overrides: AccessibleObject.Description

Gets or sets the accessible name assigned to the represented menu item.

C#
public override string Name { get; set; }

Overrides: AccessibleObject.Name

Gets the menu item represented by this accessible object.

C#
public override object Owner { get; }

Overrides: RadItemAccessibleObject.Owner

Gets the accessibility object of the control hosting this menu item.

C#
public override AccessibleObject Parent { get; }

Overrides: AccessibleObject.Parent

Reports the represented element as a menu item.

C#
public override AccessibleRole Role { get; }

Overrides: AccessibleObject.Role

Gets the menu item's accessibility state, including focus and checked state when applicable.

C#
public override AccessibleStates State { get; }

Overrides: AccessibleObject.State

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.

C#
protected ~RadMenuItemAccessibleObject()

Unsubscribes from the owner's drop-down events and suppresses finalization.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Removes the drop-down event handlers registered by the constructor.

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool

Indicates whether cleanup was initiated by Dispose() or finalization; the event handlers are removed in either case.

Performs the menu item's click action.

C#
public override void DoDefaultAction()

Overrides: AccessibleObject.DoDefaultAction()

Gets a child menu item's accessible object, loading and laying out the drop-down tree first when it has not been loaded.

C#
public override AccessibleObject GetChild(int index)
Parameters:indexint

The zero-based index in the owner's child-item collection.

Returns:

AccessibleObject

The accessible object for the child item at index.

Overrides: AccessibleObject.GetChild(int)

Gets the number of child menu items.

C#
public override int GetChildCount()
Returns:

int

The number of items in the owner's child-item collection.

Overrides: AccessibleObject.GetChildCount()