Class
DesktopExpandCollapsePattern

Represents expand collapse pattern.

Definition

Namespace:ArtOfTest.WebAii.DesktopAutomation.Patterns

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class DesktopExpandCollapsePattern : DesktopPattern

Inheritance: objectDesktopPatternDesktopExpandCollapsePattern

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

Constructors

DesktopExpandCollapsePattern(DesktopElement)

Create new instance of DesktopExpandCollapsePattern class.

Declaration

cs-api-definition
public DesktopExpandCollapsePattern(DesktopElement element)

Parameters

element

DesktopElement

Underlying element.

Properties

ExpandCollapseState

Expand-collapse state.

Declaration

cs-api-definition
public ExpandCollapseState ExpandCollapseState { get; }

Property Value

ExpandCollapseState

IsCollapsed

Indicates whether element is collapsed or not.

Declaration

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

Property Value

bool

Methods

Collapse()

Collapse underlying element.

Declaration

cs-api-definition
public void Collapse()

Expand()

Expand underlying element.

Declaration

cs-api-definition
public void Expand()