Class UiaWindowFlavorElement
public class UiaWindowFlavorElement : UiaFlavorElement
- Inheritance
-
UiaWindowFlavorElement
- Inherited Members
Constructors
UiaWindowFlavorElement(AutomationElement, Win32FlavorElement)
public UiaWindowFlavorElement(AutomationElement uiElement, Win32FlavorElement win32FlavorElement)
Parameters
uiElementAutomationElementwin32FlavorElementWin32FlavorElement
Properties
MinPathAttributes
Indicates that the minimum number of attributes to use when creating an RxPath location step for this element. Defaults to 0.
protected override int MinPathAttributes { get; }
Property Value
Methods
GetAttributeValue(Element, string)
Needs to be implemented for attribute value read access.
public override object GetAttributeValue(Element element, string name)
Parameters
Returns
- object
The attribute value.
GetElementCapabilities(Element, out Role, out string[], out string)
Supplies the role, a list of capabilities and a preferred capability names to the caller. This method called when building a new element from the flavor element.
public override void GetElementCapabilities(Element parent, out Role role, out string[] capabilities, out string preferredCap)
Parameters
parentElementThe parent element of the element to be constructed. (for reference only)
roleRoleThe role the element should have.
capabilitiesstring[]The list of capabilities the element should have.
preferredCapstringThe preferred capability the element should have.
InvokeAction(Element, string, object[])
Needs to be implemented for element action invocation.
public override object InvokeAction(Element element, string name, object[] args)
Parameters
elementElementThe element instance used.
namestringThe name of the action (lowercased).
argsobject[]A list of invocation parameters.
Returns
SetAttributeValue(Element, string, object)
Needs to be implemented for attribute value write access.
public override void SetAttributeValue(Element element, string name, object value)