IExpandCollapseProvider 介面

定義

公開方法與屬性,以支援使用者介面自動化用戶端存取控制項,這些控制項在視覺上可展開以顯示內容,也可摺疊以隱藏內容。Exposes methods and properties to support UI Automation client access to controls that visually expand to display content and collapse to hide content.

public interface class IExpandCollapseProvider
public interface IExpandCollapseProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("d847d3a5-cab0-4a98-8c32-ecb45c59ad24")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IExpandCollapseProvider
type IExpandCollapseProvider = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("d847d3a5-cab0-4a98-8c32-ecb45c59ad24")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IExpandCollapseProvider = interface
Public Interface IExpandCollapseProvider
衍生
屬性

備註

在必須支援控制項模式的消費者介面自動化提供者上執行 ExpandCollapsePatternImplemented on a UI Automation provider that must support the ExpandCollapsePattern control pattern.

屬性

ExpandCollapseState

取得控制項的狀態,可能為展開或摺疊。Gets the state, expanded or collapsed, of the control.

方法

Collapse()

隱藏屬於控制項子系的所有節點、控制項或內容。Hides all nodes, controls, or content that are descendants of the control.

Expand()

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

適用於

另請參閱