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

Exposes a drop-down menu's items and popup role to accessibility clients.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
[ComVisible(true)]
public class RadDropDownMenuAccessibleObject : Control.ControlAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadDropDownMenuAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates the accessibility object for a drop-down menu.

C#
public RadDropDownMenuAccessibleObject(RadDropDownMenu owner)
Parameters:ownerRadDropDownMenu

The drop-down menu whose items are exposed.

Properties

Gets the popup's accessible name from its owner, or DropDown when no owner element is assigned.

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

Overrides: Control.ControlAccessibleObject.Name

When an owner element exists, the getter appends DropDown to its accessible name; the setter writes to the owner's accessible name.

Reports the drop-down menu as a popup menu.

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.Role

Methods

Gets the accessible object for the item at the specified position in the drop-down menu.

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

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

Returns:

AccessibleObject

The item's accessible object when the indexed entry is a menu item; otherwise, the base child object.

Overrides: AccessibleObject.GetChild(int)

Gets the number of items in the drop-down menu.

C#
public override int GetChildCount()
Returns:

int

The menu's item count.

Overrides: AccessibleObject.GetChildCount()

Finds the menu item at a screen point, falling back to the base hit test when the point is not on a menu item.

C#
public override AccessibleObject HitTest(int x, int y)
Parameters:xint

The screen-space horizontal coordinate.

yint

The screen-space vertical coordinate.

Returns:

AccessibleObject

The hit menu item's accessible object, or the base hit-test result.

Overrides: AccessibleObject.HitTest(int, int)