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

Exposes a spin element's text box and up/down buttons to accessibility clients.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadSpinEditorElementAccessibleObject : AccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectRadSpinEditorElementAccessibleObject

Implements: IAccessibleIReflect

Constructors

Creates the accessibility object for the specified spin element.

C#
public RadSpinEditorElementAccessibleObject(RadSpinElement owner)
Parameters:ownerRadSpinElement

The spin element whose children are exposed.

Properties

Gets the spin-button role reported for this element.

C#
public override AccessibleRole Role { get; }

Overrides: AccessibleObject.Role

Methods

Gets the text box, up button, or down button at the requested child index.

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

The zero-based child index: 0 for the text box, 1 for the up button, and 2 for the down button.

Returns:

AccessibleObject

The accessible child for indices 0 through 2; otherwise, null.

Overrides: AccessibleObject.GetChild(int)

Gets the number of accessible children exposed by the spin element.

C#
public override int GetChildCount()
Returns:

int

Three: the text box and the two direction buttons.

Overrides: AccessibleObject.GetChildCount()