ExpandCollapsePattern 類別

定義

表示以視覺化方式展開來顯示內容和摺疊以隱藏內容的控制項。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
繼承
ExpandCollapsePattern

備註

匯總控制項-以提供擴充/折迭功能 UI 的子物件為基礎-必須支援 ExpandCollapsePattern 控制項模式,而其子項目則否。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. 例如,使用清單方塊、按鈕和編輯控制項組合所建置的下拉式方塊控制項,但是它只是必須支援 ExpandCollapsePattern的父下拉式方塊。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.

注意

即使是個別功能表項目的匯總,功能表控制項也是此規則的例外狀況。A menu control, even though an aggregate of individual menu items, is an exception to this rule. 功能表項目支援 ExpandCollapsePattern 控制項模式,但是父功能表控制項則不支援。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.

欄位

ExpandCollapseStateProperty

識別 ExpandCollapseState 屬性。Identifies the ExpandCollapseState property.

Pattern

識別 ExpandCollapsePattern 控制項模式。Identifies the ExpandCollapsePattern control pattern.

屬性

Cached

取得這個的快取消費者介面自動化屬性值 ExpandCollapsePatternGets the cached UI Automation property values for this ExpandCollapsePattern.

Current

取得這個的目前消費者介面自動化屬性值 ExpandCollapsePatternGets the current UI Automation property values for this ExpandCollapsePattern.

方法

Collapse()

隱藏所有下階節點、控制項或 AutomationElement 內容。Hides all descendant nodes, controls, or content of the AutomationElement.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
Expand()

顯示 AutomationElement 的所有子節點、控制項,或內容。Displays all child nodes, controls, or content of the AutomationElement.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱