語言

DataGridCellInfo 結構

定義

表示 DataGrid中特定儲存格的相關信息。

public value class DataGridCellInfo
public struct DataGridCellInfo
type DataGridCellInfo = struct
Public Structure DataGridCellInfo
繼承
DataGridCellInfo

備註

此結構提供關於該儲存格及其相關資料項目的資訊。 當 the got DataGridCell a 取得儲存格時,它會用來代替實際DataGrid容器的參考;例如,在 or CurrentCell 屬性中SelectedCells。

建構函式

名稱 Description
DataGridCellInfo(DataGridCell)

初始化指定儲存格結構的新實例 DataGridCellInfo 。

DataGridCellInfo(Object, DataGridColumn)

使用指定的資料項目和欄位初始化結構的新實例 DataGridCellInfo 。

屬性

名稱 Description
Column

取得包含該格子的欄位。

IsValid

會得到一個值,表示該結構是否包含有效資訊。

Item

取得包含該儲存格的該列的資料項目。

方法

名稱 Description
Equals(Object)

表示指定物件是否等於當前實例。

GetHashCode()

回傳目前 DataGridCellInfo 結構的雜湊碼。

運算子

名稱 Description
Equality(DataGridCellInfo, DataGridCellInfo)

表示兩個 DataGridCellInfo 實例是否相等。

Inequality(DataGridCellInfo, DataGridCellInfo)

表示兩個 DataGridCellInfo 實例是否不相等。

適用於