Class AccessibilityPeer

Namespace
Forma
Assembly
Forma.dll
public class AccessibilityPeer
Inheritance
AccessibilityPeer
Derived
Inherited Members

Properties

Actions

public virtual AccessibilityActions Actions { get; }

Property Value

AccessibilityActions

AutomationId

The owner's author-assigned AutomationId, empty when unset.

public virtual string AutomationId { get; }

Property Value

string

Bounds

public virtual Rectangle Bounds { get; }

Property Value

Rectangle

Children

public virtual IReadOnlyList<AccessibilityPeer> Children { get; }

Property Value

IReadOnlyList<AccessibilityPeer>

Id

Process-unique identity of the owning control, stable for its lifetime.

public virtual int Id { get; }

Property Value

int

IsOffscreen

public virtual bool IsOffscreen { get; }

Property Value

bool

IsVirtual

Whether this peer describes something that is not a control — a virtualized list row, a menu entry — and therefore has to be published by its owner.

The tree walk reaches real controls on its own, so publishing those twice would list every control once as a child and once as a peer. Virtual peers are the ones with no control to be reached through.

public virtual bool IsVirtual { get; }

Property Value

bool

Name

public virtual string Name { get; }

Property Value

string

Owner

public Control Owner { get; }

Property Value

Control

Role

public virtual AccessibilityRole Role { get; }

Property Value

AccessibilityRole

States

public virtual AccessibilityStates States { get; }

Property Value

AccessibilityStates

Value

public virtual string Value { get; }

Property Value

string

Methods

Invoke(AccessibilityActions, object)

Performs one of the actions this peer advertises in Actions, returning whether it was handled. Asking for an action that is not advertised returns false rather than throwing, so a caller can probe without guarding every call.

public virtual bool Invoke(AccessibilityActions action, object argument = null)

Parameters

action AccessibilityActions
argument object

Returns

bool