Class AccessibilityPeer
- Namespace
- Forma
- Assembly
- Forma.dll
public class AccessibilityPeer
- Inheritance
-
AccessibilityPeer
- Derived
- Inherited Members
Properties
Actions
public virtual AccessibilityActions Actions { get; }
Property Value
AutomationId
The owner's author-assigned AutomationId, empty when unset.
public virtual string AutomationId { get; }
Property Value
Bounds
public virtual Rectangle Bounds { get; }
Property Value
- Rectangle
Children
public virtual IReadOnlyList<AccessibilityPeer> Children { get; }
Property Value
Id
Process-unique identity of the owning control, stable for its lifetime.
public virtual int Id { get; }
Property Value
IsOffscreen
public virtual bool IsOffscreen { get; }
Property Value
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
Name
public virtual string Name { get; }
Property Value
Owner
public Control Owner { get; }
Property Value
Role
public virtual AccessibilityRole Role { get; }
Property Value
States
public virtual AccessibilityStates States { get; }
Property Value
Value
public virtual string Value { get; }
Property Value
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
actionAccessibilityActionsargumentobject