GridItemPattern.Current GridItemPattern.Current GridItemPattern.Current GridItemPattern.Current Property

定義

取得這個 GridItemPattern 目前的屬性值。Gets the current property values for this GridItemPattern.

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

屬性值

備註

此模式必須來自AutomationElement Full具有參考的, 才能取得目前的值。This pattern must be from an AutomationElement with an Full reference in order to get current values. 如果是AutomationElement使用None取得, 它只會包含快取的資料, 而嘗試取得任何屬性的目前值會引發例外狀況。If the AutomationElement was obtained using None, it contains only cached data, and attempting to get the current value of any property raises an exception. 使用Cached取得先前CacheRequest使用所指定之屬性的快取值。Use Cached to get the cached value of a property that was previously specified using a CacheRequest.

如需可用屬性及其用法的詳細資訊, 請GridItemPattern.GridItemPatternInformation參閱。For information on the properties available and their use, see GridItemPattern.GridItemPatternInformation.

適用於