Class
DesktopSelectionItemPattern

Represent selection item

Definition

Namespace:ArtOfTest.WebAii.DesktopAutomation.Patterns

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class DesktopSelectionItemPattern : DesktopPattern

Inheritance: objectDesktopPatternDesktopSelectionItemPattern

Inherited Members DesktopPattern.elementDesktopPattern.EnumNativeArray(IUIAutomationElementArray)DesktopPattern.GetNativePattern<T>(int)

Constructors

DesktopSelectionItemPattern(DesktopElement)

Create new instance of DesktopSelectionItemPattern class.

Declaration

cs-api-definition
public DesktopSelectionItemPattern(DesktopElement element)

Parameters

element

DesktopElement

Underlying element.

Properties

IsSelected

Indicates whether underlying element selected or not.

Declaration

cs-api-definition
public bool IsSelected { get; }

Property Value

bool

SelectionContainer

The element that contains underlying element.

Declaration

cs-api-definition
public DesktopElement SelectionContainer { get; }

Property Value

DesktopElement

SelectionContainerText

String representation of SelectionContainer.

Declaration

cs-api-definition
public string SelectionContainerText { get; }

Property Value

string

Methods

Deselect()

Deselect underlying element.

Declaration

cs-api-definition
public void Deselect()

Select()

Select underlying element.

Declaration

cs-api-definition
public void Select()