AutomationElement.IsScrollPatternAvailableProperty 欄位

定義

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

public: static initonly System::Windows::Automation::AutomationProperty ^ IsScrollPatternAvailableProperty;
public static readonly System.Windows.Automation.AutomationProperty IsScrollPatternAvailableProperty;
 staticval mutable IsScrollPatternAvailableProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly IsScrollPatternAvailableProperty As AutomationProperty 

欄位值

AutomationProperty

範例

下列範例會 ascertains 是否支援指定的控制項模式 AutomationElementThe 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. 消費者介面自動化提供者應該在中使用對等的識別碼 AutomationElementIdentifiersUI 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.

適用於