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

Exposes a RadTreeView and its nodes to Windows accessibility clients.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadTreeViewAccessibleObject : Control.ControlAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadTreeViewAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates the accessible object and subscribes to tree changes that invalidate its node caches.

C#
public RadTreeViewAccessibleObject(RadTreeView owner)
Parameters:ownerRadTreeView

The tree view represented by this accessible object.

Properties

Gets the tree view's accessible bounds, expanded by two pixels on each side.

C#
public override Rectangle Bounds { get; }

Overrides: AccessibleObject.Bounds

Gets a description containing the tree-node marker, this object's accessible name, and the node count.

C#
public override string Description { get; }

Overrides: Control.ControlAccessibleObject.Description

Gets the outline role used to expose the tree hierarchy.

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.Role

Methods

Clears cached node accessible objects and indices, and marks the cached node count as invalid.

C#
protected virtual void ClearCache()

Gets the accessible object at the specified position in the flattened tree-node traversal.

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

The zero-based position in the traversal.

Returns:

AccessibleObject

The node's accessible object, or null when the position is not present.

Overrides: AccessibleObject.GetChild(int)

Gets the total number of nodes in the flattened traversal returned by GetNodes(), including descendants rather than only root-level nodes.

C#
public override int GetChildCount()
Returns:

int

Overrides: AccessibleObject.GetChildCount()

Returns the accessible object for the focused node, or the tree view itself when it has focus.

C#
public override AccessibleObject GetFocused()
Returns:

AccessibleObject

The focused node or tree accessible object; returns the base result when the tree has no nodes, and null when nodes exist but neither a node nor the tree view is focused.

Overrides: AccessibleObject.GetFocused()

Gets the cached accessible object for a node, creating it with the corresponding accessible parent when needed.

C#
public AccessibleObject GetNodeAccessibleObject(RadTreeNode node)
Parameters:nodeRadTreeNode

The node to expose.

Returns:

AccessibleObject

The cached or newly created accessible object for the node.

Counts nodes yielded by the tree's flattened traversal and caches the total when the cached count is invalid.

C#
protected virtual void PopulateCachedNodeCount()