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

Exposes a list control's data items and fixed vertical and horizontal scroll-bar slots as accessible children.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

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

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadListControlAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates the accessibility object and subscribes to list selection changes to notify clients of focus.

C#
public RadListControlAccessibleObject(RadListControl owner)
Parameters:ownerRadListControl

The list control represented by this object.

Properties

Gets a description string containing the control name, accessible child count, and selected index.

C#
public override string Description { get; }

Overrides: Control.ControlAccessibleObject.Description

Gets the list control represented by this accessibility object.

C#
public RadListControl List { get; }

Gets the control's name; setting the property stores the value in the base accessibility object.

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

Overrides: Control.ControlAccessibleObject.Name

Reports the control as a list.

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.Role

Methods

Gets the accessible object for a data item or the vertical or horizontal scroll bar at the corresponding trailing index.

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

The zero-based child index.

Returns:

AccessibleObject

The cached item object or a scroll-bar accessible object.

Overrides: AccessibleObject.GetChild(int)

Scroll-bar indices follow the item collection regardless of visibility, while GetChildCount() counts only visible scroll bars.

Gets the number of data items plus the scroll bars currently visible in the list.

C#
public override int GetChildCount()
Returns:

int

Zero when the list is disposed; otherwise, the item count plus the visible scroll-bar count.

Overrides: AccessibleObject.GetChildCount()

Gets the cached accessibility object for a data item, creating it on first request.

C#
public RadListDataItemAccessibleObject GetItemAccessibleObject(RadListDataItem item)
Parameters:itemRadListDataItem

The data item to expose.

Returns:

RadListDataItemAccessibleObject

The accessible object associated with item.

Finds a data item or scroll bar at the specified screen point.

C#
public override AccessibleObject HitTest(int x, int y)
Parameters:xint

The screen-space horizontal coordinate.

yint

The screen-space vertical coordinate.

Returns:

AccessibleObject

The accessible object for a hit item or scroll bar; otherwise, null.

Overrides: AccessibleObject.HitTest(int, int)

Returns no navigation target; this accessible object does not implement navigation through this method.

C#
public override AccessibleObject Navigate(AccessibleNavigation direction)
Parameters:directionAccessibleNavigation

The requested navigation direction.

Returns:

AccessibleObject

null.

Overrides: AccessibleObject.Navigate(AccessibleNavigation)