DataGridColumn.GetCellContent 方法

定義

取得資料行中之儲存格的 Content 屬性值。

多載

GetCellContent(Object)

如果儲存格與這個資料行以及表示指定之資料項目的資料列相交,則取得該儲存格的 Content 屬性值。

GetCellContent(DataGridRow)

針對位於這個資料行與所指定資料列交集處的儲存格,擷取該儲存格的 Content 屬性值。

GetCellContent(Object)

如果儲存格與這個資料行以及表示指定之資料項目的資料列相交,則取得該儲存格的 Content 屬性值。

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

由資料列 (內含所要的儲存格) 表示的資料項目。

傳回

FrameworkElement

儲存格內容,如果找不到儲存格則為 null

例外狀況

dataItemnull

適用於

GetCellContent(DataGridRow)

針對位於這個資料行與所指定資料列交集處的儲存格,擷取該儲存格的 Content 屬性值。

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
Public Function GetCellContent (dataGridRow As DataGridRow) As FrameworkElement

參數

dataGridRow
DataGridRow

包含所要之儲存格的資料列。

傳回

FrameworkElement

儲存格內容,如果找不到儲存格則為 null

例外狀況

dataGridRownull

適用於