AutomationElement.IsExpandCollapsePatternAvailableProperty 欄位
定義
識別表示這個 AutomationElement 上是否有 ExpandCollapsePattern 控制項模式的屬性。Identifies the property that indicates whether the ExpandCollapsePattern control pattern is available on this AutomationElement.
public: static initonly System::Windows::Automation::AutomationProperty ^ IsExpandCollapsePatternAvailableProperty;
public static readonly System.Windows.Automation.AutomationProperty IsExpandCollapsePatternAvailableProperty;
staticval mutable IsExpandCollapsePatternAvailableProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly IsExpandCollapsePatternAvailableProperty As AutomationProperty
欄位值
範例
下列範例會抓取值,這個值會指定是否支援指定的控制項模式 AutomationElement 。The following example retrieves a value that specifies whether a specified control pattern is supported by an AutomationElement.
// TODO Substitute the appropriate field for IsDockPatternAvailableProperty.
bool isPatternAvailable = (bool)
autoElement.GetCurrentPropertyValue(AutomationElement.IsDockPatternAvailableProperty);
' TODO Substitute the appropriate field for IsDockPatternAvailableProperty.
Dim isPatternAvailable As Boolean = _
CBool(autoElement.GetCurrentPropertyValue(AutomationElement.IsDockPatternAvailableProperty))
備註
消費者介面自動化用戶端應用程式會使用此識別碼。This identifier is used by UI Automation client applications. 消費者介面自動化提供者應該在中使用對等的識別碼 AutomationElementIdentifiers 。UI Automation providers should use the equivalent identifier in AutomationElementIdentifiers.
屬性的傳回值屬於類型 Boolean 。Return values of the property are of type Boolean. 屬性的預設值為 false
。The default value for the property is false
.