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

Exposes a drop-down button element and its menu items as a WinForms accessibility tree.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadDropDownButtonElementAccessibleObject : RadControlAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadControlAccessibleObjectRadDropDownButtonElementAccessibleObject...

Derived Classes: RadApplicationMenuButtonElementAccessibleObject

Implements: IAccessibleIReflect

Constructors

Creates an accessibility object for the element and subscribes to its menu events to forward popup and selection notifications.

C#
public RadDropDownButtonElementAccessibleObject(RadDropDownButtonElement buttonElement, string name)
Parameters:buttonElementRadDropDownButtonElement

The drop-down button element whose menu and bounds are exposed.

namestring

The accessible name passed to the base object for the host control.

Properties

Gets the element's control bounding rectangle converted to screen coordinates.

C#
public override Rectangle Bounds { get; }

Overrides: AccessibleObject.Bounds

Gets the drop-down button element represented by this accessibility object.

C#
public override object OwnerElement { get; }

Overrides: RadControlAccessibleObject.OwnerElement

Gets the accessibility object of the control that hosts the drop-down button element.

C#
public override AccessibleObject Parent { get; }

Overrides: Control.ControlAccessibleObject.Parent

Reports the element to accessibility clients as a drop-down button.

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.Role

Methods

Gets the accessible object for the menu item at the specified index, loading and laying out the menu first when needed.

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

The zero-based index of the menu item.

Returns:

AccessibleObject

The menu item's accessibility object.

Overrides: AccessibleObject.GetChild(int)

Returns the number of menu items exposed as accessible children.

C#
public override int GetChildCount()
Returns:

int

The number of items in the button's menu.

Overrides: AccessibleObject.GetChildCount()