C# Class Automation.UI.Tree.StringPropertyCondition

A special property condition that can partially match string properties. Matching is done using string functions like StartsWith, EndsWith and Contains. This also supports matching properties using regular expressions.
Inheritance: System.Windows.Automation.PropertyCondition
Show file Open project: vijayakumarsuraj/UIAutomation Class Usage Examples

Public Methods

Method Description
IsMatch ( AutomationElement element ) : bool

Check if the specified automation element meets this condition's requirements.

StringPropertyCondition ( AutomationProperty property, string value ) : System.Windows.Automation

New string property condition.

StringPropertyCondition ( AutomationProperty property, string value, Matcher matcher ) : System.Windows.Automation

New string property condition.

Method Details

IsMatch() public method

Check if the specified automation element meets this condition's requirements.
public IsMatch ( AutomationElement element ) : bool
element System.Windows.Automation.AutomationElement The element to check.
return bool

StringPropertyCondition() public method

New string property condition.
public StringPropertyCondition ( AutomationProperty property, string value ) : System.Windows.Automation
property System.Windows.Automation.AutomationProperty The property to check.
value string The expected string value.
return System.Windows.Automation

StringPropertyCondition() public method

New string property condition.
public StringPropertyCondition ( AutomationProperty property, string value, Matcher matcher ) : System.Windows.Automation
property System.Windows.Automation.AutomationProperty The property to check.
value string The expected string value.
matcher Matcher The matcher to use for the comparison.
return System.Windows.Automation