AutomationElement.IsSelectionPatternAvailableProperty 欄位
定義
識別表示這個 AutomationElement 上是否有 SelectionPattern 控制項模式的屬性。Identifies the property that indicates whether the SelectionPattern control pattern is available on this AutomationElement.
public: static initonly System::Windows::Automation::AutomationProperty ^ IsSelectionPatternAvailableProperty;
public static readonly System.Windows.Automation.AutomationProperty IsSelectionPatternAvailableProperty;
staticval mutable IsSelectionPatternAvailableProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly IsSelectionPatternAvailableProperty As AutomationProperty
欄位值
範例
下列範例會 ascertains 是否支援指定的控制項模式 AutomationElement 。The following example ascertains 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
.