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

Exposes a RadTreeNode and its children to Windows accessibility clients.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadTreeNodeAccessibleObject : RadItemAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectRadItemAccessibleObjectRadTreeNodeAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates an accessible object for a node within its tree's accessible hierarchy.

C#
public RadTreeNodeAccessibleObject(RadTreeNode owner, AccessibleObject parent, RadTreeViewAccessibleObject treeViewAccObject)
Parameters:ownerRadTreeNode

The node represented by this object.

parentAccessibleObject

The accessible object that contains this node.

treeViewAccObjectRadTreeViewAccessibleObject

The tree-level accessible object used to retrieve cached node objects.

Properties

Gets the node's screen bounds when its visual element is realized; otherwise returns Empty.

C#
public override Rectangle Bounds { get; }

Overrides: AccessibleObject.Bounds

Gets "Collapse" when the node is expanded and "Expand" otherwise.

C#
public override string DefaultAction { get; }

Overrides: AccessibleObject.DefaultAction

Gets a description containing the node marker, accessible name, and direct-child count.

C#
public override string Description { get; }

Overrides: AccessibleObject.Description

Gets the node text with an expanded or collapsed suffix when the node has children. Setting the name delegates to the base accessible object and does not set Text.

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

Overrides: AccessibleObject.Name

Gets the RadTreeNode represented by this accessible object.

C#
public override object Owner { get; }

Overrides: RadItemAccessibleObject.Owner

Gets the accessible parent supplied when this object was created.

C#
public override AccessibleObject Parent { get; }

Overrides: AccessibleObject.Parent

Gets the outline-item role for the tree node.

C#
public override AccessibleRole Role { get; }

Overrides: AccessibleObject.Role

Gets the accessibility states derived from the node's enabled, realized, expanded, current, and selected states.

C#
public override AccessibleStates State { get; }

Overrides: AccessibleObject.State

Disabled nodes use the base state. Otherwise, the object is focusable and selectable; it is marked invisible and offscreen when its element is unrealized or an ancestor is collapsed. Expanded or collapsed is included only when the node is visible and its child collection is non-empty, and the current and selected flags are reflected as focused and selected states.

Gets the node's depth in the tree as a string, with the root level represented by "0". Setting the value delegates to the base accessible object and does not change the node's hierarchy.

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

Overrides: AccessibleObject.Value

Methods

Collapses an expanded node or expands a collapsed node.

C#
public override void DoDefaultAction()

Overrides: AccessibleObject.DoDefaultAction()

Gets the accessible object for the direct child at the specified index.

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

The zero-based index in the node's child collection.

Returns:

AccessibleObject

The cached accessible object for the child node.

Overrides: AccessibleObject.GetChild(int)

Gets the number of direct child nodes.

C#
public override int GetChildCount()
Returns:

int

Overrides: AccessibleObject.GetChildCount()

Returns null; selection is exposed through the Selected flag in State.

C#
public override AccessibleObject GetSelected()
Returns:

AccessibleObject

Overrides: AccessibleObject.GetSelected()

Navigates to a child, sibling, or parent according to the requested accessibility direction.

C#
public override AccessibleObject Navigate(AccessibleNavigation navdir)
Parameters:navdirAccessibleNavigation

The direction in which to navigate.

Returns:

AccessibleObject

The accessible object in that direction, or null when no matching node exists. Next enters the first child when present; otherwise it advances to a following sibling or an ancestor's following sibling. Previous returns the previous sibling or parent; Up and Down move between siblings; Right enters the first child; Left returns the parent.

Overrides: AccessibleObject.Navigate(AccessibleNavigation)