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

Exposes a scroll-bar element's current value and its two buttons and thumb as accessible children.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

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

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadScrollBarElementAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates an accessibility object for a scroll-bar element.

C#
public RadScrollBarElementAccessibleObject(RadScrollBarElement ownerElement)
Parameters:ownerElementRadScrollBarElement

The scroll-bar element represented by this object.

Fields

The scroll-bar element whose value and child elements are exposed.

C#
protected RadScrollBarElement ownerElement

Properties

Gets the current scroll position as the accessible description.

C#
public override string Description { get; }

Overrides: Control.ControlAccessibleObject.Description

Gets the current scroll position as the accessible name.

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

Overrides: Control.ControlAccessibleObject.Name

Setting the name delegates to the base accessibility object; the getter continues to return the current value.

Reports the element as a scroll bar.

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.Role

Gets the current scroll position as text.

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

Overrides: AccessibleObject.Value

Setting the value delegates to the base accessibility object rather than assigning Value.

Methods

Gets the first button, thumb indicator, or second button at the specified child index.

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

The child index: zero for the first button, one for the thumb, or two for the second button.

Returns:

AccessibleObject

The accessible object for the corresponding scroll-bar element.

Exceptions: ArgumentOutOfRangeException

index is not between zero and two.

Overrides: AccessibleObject.GetChild(int)

Gets the fixed number of accessible child elements: the two buttons and the thumb.

C#
public override int GetChildCount()
Returns:

int

Three.

Overrides: AccessibleObject.GetChildCount()