DataGridColumn.GetCellContent DataGridColumn.GetCellContent DataGridColumn.GetCellContent DataGridColumn.GetCellContent Method

定義

取得資料行中之儲存格的 Content 屬性值。Gets the Content property value for a cell in the column.

多載

GetCellContent(Object) GetCellContent(Object) GetCellContent(Object) GetCellContent(Object)

如果儲存格與這個資料行以及表示指定之資料項目的資料列相交,則取得該儲存格的 Content 屬性值。Gets the Content property value for the cell at the intersection of this column and the row that represents the specified data item.

GetCellContent(DataGridRow) GetCellContent(DataGridRow) GetCellContent(DataGridRow)

針對位於這個資料行與所指定資料列交集處的儲存格,擷取該儲存格的 Content 屬性值。Retrieves the Content property value for the cell at the intersection of this column and the specified row.

GetCellContent(Object) GetCellContent(Object) GetCellContent(Object) GetCellContent(Object)

如果儲存格與這個資料行以及表示指定之資料項目的資料列相交,則取得該儲存格的 Content 屬性值。Gets the Content property value for the cell at the intersection of this column and the row that represents the specified data item.

public:
 System::Windows::FrameworkElement ^ GetCellContent(System::Object ^ dataItem);
public System.Windows.FrameworkElement GetCellContent (object dataItem);
member this.GetCellContent : obj -> System.Windows.FrameworkElement
Public Function GetCellContent (dataItem As Object) As FrameworkElement

參數

dataItem
Object Object Object Object

由資料列 (內含所要的儲存格) 表示的資料項目。The data item that is represented by the row that contains the intended cell.

傳回

儲存格內容,如果找不到儲存格則為 nullThe cell content; or null, if the cell is not found.

例外狀況

GetCellContent(DataGridRow) GetCellContent(DataGridRow) GetCellContent(DataGridRow)

針對位於這個資料行與所指定資料列交集處的儲存格,擷取該儲存格的 Content 屬性值。Retrieves the Content property value for the cell at the intersection of this column and the specified row.

public:
 System::Windows::FrameworkElement ^ GetCellContent(System::Windows::Controls::DataGridRow ^ dataGridRow);
public System.Windows.FrameworkElement GetCellContent (System.Windows.Controls.DataGridRow dataGridRow);
member this.GetCellContent : System.Windows.Controls.DataGridRow -> System.Windows.FrameworkElement

參數

dataGridRow
DataGridRow DataGridRow DataGridRow DataGridRow

包含所要之儲存格的資料列。The row that contains the intended cell.

傳回

儲存格內容,如果找不到儲存格則為 nullThe cell content; or null, if the cell is not found.

例外狀況

適用於