SelectionPattern.Current 属性

定义

获取此 SelectionPattern 的当前UI 自动化属性值。

public:
 property System::Windows::Automation::SelectionPattern::SelectionPatternInformation Current { System::Windows::Automation::SelectionPattern::SelectionPatternInformation get(); };
public System.Windows.Automation.SelectionPattern.SelectionPatternInformation Current { get; }
member this.Current : System.Windows.Automation.SelectionPattern.SelectionPatternInformation
Public ReadOnly Property Current As SelectionPattern.SelectionPatternInformation

属性值

包含控件模式的当前UI 自动化属性值的结构。

注解

此模式必须来自 AutomationElement 具有引用的 Full 模式才能获取当前值。 AutomationElement如果获取了该None属性,则它仅包含缓存的数据,并且尝试获取任何属性的当前值会引发异常。 用于 Cached 获取以前使用 a CacheRequest. 指定的属性的缓存值。

有关可用属性及其用法的信息,请参阅 SelectionPattern.SelectionPatternInformation

适用于