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

Exposes a scroll-bar control'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 RadScrollBarAccessibleObject : RadControlAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadControlAccessibleObjectRadScrollBarAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates an accessibility object for a scroll-bar control.

C#
public RadScrollBarAccessibleObject(RadScrollBar owner, string name)
Parameters:ownerRadScrollBar

The scroll-bar control represented by this object.

namestring

The initial accessible name passed to the base object.

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: RadControlAccessibleObject.Name

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

Gets the scroll-bar control represented by this object.

C#
public override object OwnerElement { get; }

Overrides: RadControlAccessibleObject.OwnerElement

Reports the control 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 the scroll bar's numeric 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()