ExpandCollapseStateProperty Field
Collapse the table of content
Expand the table of content

ExpandCollapsePattern::ExpandCollapseStateProperty Field

 

Identifies the ExpandCollapseState property.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

public:
static initonly AutomationProperty^ ExpandCollapseStateProperty

This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent field in ExpandCollapsePatternIdentifiers.

ExpandCollapseState refers to the visibility of immediate child objects only; it does not refer to the visibility of all descendant objects.

The default value is Expanded.

In the following example, a root element is passed to a function that returns a collection of UI Automation elements that are descendants of the root and satisfy a set of property conditions.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0

ExpandCollapsePattern Class
System.Windows.Automation Namespace
InvokePattern and ExpandCollapsePattern Menu Item Sample

Return to top
Show:
© 2016 Microsoft