IExpandCollapseProvider IExpandCollapseProvider IExpandCollapseProvider IExpandCollapseProvider Interface

Definition

Exposes methods and properties to support access by a Microsoft UI Automation client to controls that visually expand to display content and that collapse to hide content. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.ExpandCollapse.

public : interface IExpandCollapseProviderpublic interface IExpandCollapseProviderPublic Interface IExpandCollapseProvider// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see ExpandCollapse Control Pattern.

IExpandCollapseProvider is implemented by the existing Windows Runtime automation peer for ComboBox (ComboBoxAutomationPeer ).

Use ExpandCollapsePatternIdentifiers if you want to reference the IExpandCollapseProvider pattern properties from control code when you fire automation events or call RaisePropertyChangedEvent.

Properties

ExpandCollapseState ExpandCollapseState ExpandCollapseState ExpandCollapseState

Gets the state (expanded or collapsed) of the control.

public : ExpandCollapseState ExpandCollapseState { get; }public ExpandCollapseState ExpandCollapseState { get; }Public ReadOnly Property ExpandCollapseState As ExpandCollapseState// This API is not available in Javascript.
Value
ExpandCollapseState ExpandCollapseState ExpandCollapseState ExpandCollapseState

The state (expanded or collapsed) of the control.

Methods

Collapse() Collapse() Collapse() Collapse()

Hides all nodes, controls, or content that are descendants of the control.

public : void Collapse()public void Collapse()Public Function Collapse() As void// This API is not available in Javascript.

Expand() Expand() Expand() Expand()

Displays all child nodes, controls, or content of the control.

public : void Expand()public void Expand()Public Function Expand() As void// This API is not available in Javascript.

See Also