ExpandCollapsePattern.Current 属性

定义

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

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

属性值

ExpandCollapsePattern.ExpandCollapsePatternInformation

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

注解

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

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

适用于

另请参阅