C# Class UIAutomation.ExtensionMethodsElement

Description of ExtensionMethodsElement.
显示文件 Open project: apetrovskiy/STUPS

Public Methods

Method Description
ConvertToHashtable ( this element ) : Hashtable
ConvertToHashtables ( this elements ) : IEnumerable
GetInfo ( this element ) : string
GetIsValid ( this element ) : bool
GetParent ( this element ) : IUiElement

Private Methods

Method Description
CollectAncestors ( this element, TranscriptCmdletBase cmdlet, string &errorMessage, bool &errorOccured ) : void

CompareElementValueAndValueParameter ( this element, string textValue, bool viaWildcardOrRegex, System.Management.Automation.WildcardPattern wildcardValue, RegexOptions regexOptions ) : bool

Checks that the -Value parameter matches the value ValuePattern of the element returns

GetAncestorWithHandle ( this element ) : IUiElement

///

GetElementControlTypeString ( this element ) : string

Retrievs an element's ControlType property as a string.

GetElementPropertyString ( this element, PSCmdletBase cmdlet, string propertyName, IValuePattern pattern, bool &hasName ) : string

Retrieves such element's properties as AutomationId, Name, Class(Name) and Value

GetParentOrAncestor ( this element, UIANET::System.Windows.Automation scope ) : IUiElement[]

///

InvokeContextMenu ( this inputObject, HasControlInputCmdletBase cmdlet, int x, int y ) : IUiElement
IsMatchWildcardPattern ( this elementInput, IList resultCollection, WildcardPattern wcPattern, string dataToCheck ) : bool

Method Details

ConvertToHashtable() public static method

public static ConvertToHashtable ( this element ) : Hashtable
element this
return System.Collections.Hashtable

ConvertToHashtables() public static method

public static ConvertToHashtables ( this elements ) : IEnumerable
elements this
return IEnumerable

GetInfo() public static method

public static GetInfo ( this element ) : string
element this
return string

GetIsValid() public static method

public static GetIsValid ( this element ) : bool
element this
return bool

GetParent() public static method

public static GetParent ( this element ) : IUiElement
element this
return IUiElement