Class
DesktopSelectionPattern

Represent selection pattern.

Definition

Namespace:ArtOfTest.WebAii.DesktopAutomation.Patterns

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class DesktopSelectionPattern : DesktopPattern

Inheritance: objectDesktopPatternDesktopSelectionPattern

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

Constructors

DesktopSelectionPattern(DesktopElement)

Create new instance of DesktopSelectionPattern class.

Declaration

cs-api-definition
public DesktopSelectionPattern(DesktopElement element)

Parameters

element

DesktopElement

Underlying element.

Properties

CanSelectMultiple

Indicates whether multiple items can be selected.

Declaration

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

Property Value

bool

IsSelectionRequired

Indicates whether item selection is required.

Declaration

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

Property Value

bool

Selection

String representation of selected elements.

Declaration

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

Property Value

string

Methods

AllSelectedItems()

Get all selected items.

Declaration

cs-api-definition
public DesktopElement[] AllSelectedItems()

Returns

DesktopElement[]

Array of DesktopElement.

FirstSelectedItem()

Get first selected item.

Declaration

cs-api-definition
public DesktopElement FirstSelectedItem()

Returns

DesktopElement

Instance of DesktopElement.