Struct AccessibilityNode

Namespace
Forma
Assembly
Forma.dll

One node of an AccessibilityTreeSnapshot: everything a consumer needs about a single element, flattened so the tree can be transported, diffed or serialized without walking live controls.

public readonly struct AccessibilityNode
Inherited Members

Properties

Actions

What this element can be asked to do. See Invoke(AccessibilityActions, object).

public AccessibilityActions Actions { get; }

Property Value

AccessibilityActions

AutomationId

Author-assigned identifier, empty when unset. Stable across relabelling.

public string AutomationId { get; }

Property Value

string

Bounds

Bounds in global coordinates, matching what pointer input uses.

public Rectangle Bounds { get; }

Property Value

Rectangle

Id

Identity of this node, unique within the process and stable while it lives.

public int Id { get; }

Property Value

int

IsRoot

Whether this node sits directly under the context, with no parent node.

public bool IsRoot { get; }

Property Value

bool

Name

What assistive technology announces. Changes when a control is relabelled.

public string Name { get; }

Property Value

string

ParentId

Id of the containing node, or 0 for a root.

public int ParentId { get; }

Property Value

int

Role

What kind of element this is, which is how a locator finds it by role.

public AccessibilityRole Role { get; }

Property Value

AccessibilityRole

States

Disabled, focused, offscreen and the rest, used for actionability decisions.

public AccessibilityStates States { get; }

Property Value

AccessibilityStates

Value

The element's current value, where it has one: a field's text, a slider's number.

public string Value { get; }

Property Value

string