DataGrid.CurrentCell 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定有焦點的細胞。
public:
property System::Windows::Controls::DataGridCellInfo CurrentCell { System::Windows::Controls::DataGridCellInfo get(); void set(System::Windows::Controls::DataGridCellInfo value); };
public System.Windows.Controls.DataGridCellInfo CurrentCell { get; set; }
member this.CurrentCell : System.Windows.Controls.DataGridCellInfo with get, set
Public Property CurrentCell As DataGridCellInfo
屬性值
關於該細胞的資訊,該細胞有焦點。
備註
回傳的值是一個結構,提供關於儲存格及其相關資料項目的資訊。 這並不是對容器 DataGridCell 的實際指涉。
要設定選取儲存格的屬性,可以在屬性中 CellStyle 設定觸發條件。 如需詳細資訊,請參閱CellStyle。