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

Exposes a spin editor's text box and up/down buttons as accessible children.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
[ComVisible(true)]
public class RadSpinEditorAccessibleObject : RadControlAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadControlAccessibleObjectRadSpinEditorAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates the accessibility object for the specified spin editor.

C#
public RadSpinEditorAccessibleObject(RadSpinEditor owner, string name)
Parameters:ownerRadSpinEditor

The control whose accessible children are exposed.

namestring

The accessible name supplied to the base control accessibility object.

Properties

Gets the RadSpinEditor represented by this accessibility object.

C#
public override object OwnerElement { get; }

Overrides: RadControlAccessibleObject.OwnerElement

Gets the control's configured accessible role, or WhiteSpace when its role is unset.

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.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 editor.

C#
public override int GetChildCount()
Returns:

int

Three: the text box and the two direction buttons.

Overrides: AccessibleObject.GetChildCount()