C# Class Automation.UI.Tree.QueryParts.QueryMatcherPart

Represents the matcher part of the conditions of a query.
Inheritance: QueryConditionPart.QueryConditionPartPart
Show file Open project: vijayakumarsuraj/UIAutomation

Private Properties

Property Type Description
ApplyMatcher QueryOperatorPart
ApplyMatcher QueryOperatorPart
QueryMatcherPart System.Windows.Automation

Public Methods

Method Description
Contains ( string value ) : QueryOperatorPart

Adds a contains condition.

EndsWith ( string value ) : QueryOperatorPart

Adds an ends with condition.

Is ( object value ) : QueryOperatorPart

Adds a property condition.

Matches ( string pattern ) : QueryOperatorPart

Adds a regex condition.

StartsWith ( string value ) : QueryOperatorPart

Adds a starts with condition.

Private Methods

Method Description
ApplyMatcher ( object value ) : QueryOperatorPart

Applies the required property condition in the condition part of the query.

ApplyMatcher ( string value, Matcher matcher ) : QueryOperatorPart

Applies the required string property condition in the condition part of the query.

QueryMatcherPart ( AutomationProperty property, QueryConditionPart part ) : System.Windows.Automation

New query matcher part.

Method Details

Contains() public method

Adds a contains condition.
public Contains ( string value ) : QueryOperatorPart
value string The expected value.
return QueryOperatorPart

EndsWith() public method

Adds an ends with condition.
public EndsWith ( string value ) : QueryOperatorPart
value string The expected value.
return QueryOperatorPart

Is() public method

Adds a property condition.
public Is ( object value ) : QueryOperatorPart
value object The expected value.
return QueryOperatorPart

Matches() public method

Adds a regex condition.
public Matches ( string pattern ) : QueryOperatorPart
pattern string The regeular expression to match.
return QueryOperatorPart

StartsWith() public method

Adds a starts with condition.
public StartsWith ( string value ) : QueryOperatorPart
value string The expected value.
return QueryOperatorPart