AutomationElement.IsDockPatternAvailableProperty 字段

定义

标识表示在此 DockPatternAutomationElement 控件模式是否可用的属性。

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

字段值

AutomationProperty

示例

以下示例确定指定的控件模式是否受 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))

注解

此标识符由UI 自动化客户端应用程序使用。 UI 自动化提供程序应使用等效标识符。AutomationElementIdentifiers

属性的返回值的类型 Boolean。 属性的默认值为 false.

适用于

另请参阅