Editare

Partajați prin


ExpandCollapsePattern Class

Definition

Represents controls that visually expand to display content and collapse to hide content.

public ref class ExpandCollapsePattern : System::Windows::Automation::BasePattern
public class ExpandCollapsePattern : System.Windows.Automation.BasePattern
type ExpandCollapsePattern = class
    inherit BasePattern
Public Class ExpandCollapsePattern
Inherits BasePattern
Inheritance
ExpandCollapsePattern

Remarks

Aggregate controls - built with child objects that provide the UI for expand/collapse functionality - must support the ExpandCollapsePattern control pattern while their child elements do not. For example, a combo box control is built with a combination of list box, button, and edit controls, but it is only the parent combo box that must support the ExpandCollapsePattern.

Note

A menu control, even though an aggregate of individual menu items, is an exception to this rule. The menu items support the ExpandCollapsePattern control pattern, but the parent menu control does not. A similar exception applies to the tree and tree item controls.

Fields

ExpandCollapseStateProperty

Identifies the ExpandCollapseState property.

Pattern

Identifies the ExpandCollapsePattern control pattern.

Properties

Cached

Gets the cached UI Automation property values for this ExpandCollapsePattern.

Current

Gets the current UI Automation property values for this ExpandCollapsePattern.

Methods

Collapse()

Hides all descendant nodes, controls, or content of the AutomationElement.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Expand()

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also