AutomationElement.IsTextPatternAvailableProperty 欄位

定義

識別表示這個 AutomationElement 上是否有 TextPattern 控制項模式的屬性。Identifies the property that indicates whether the TextPattern control pattern is available on this AutomationElement.

public: static initonly System::Windows::Automation::AutomationProperty ^ IsTextPatternAvailableProperty;
public static readonly System.Windows.Automation.AutomationProperty IsTextPatternAvailableProperty;
 staticval mutable IsTextPatternAvailableProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly IsTextPatternAvailableProperty 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.

屬性的傳回值為類型BooleanReturn values of the property are of type Boolean. 屬性的預設值為falseThe default value for the property is false.

適用於

另請參閱