Share via


TableCell 建構函式

定義

初始化 TableCell 類別的新執行個體。

多載

TableCell()

初始化 TableCell 類別的新的空執行個體。

TableCell(Block)

初始化 TableCell 類別的新執行個體,並將指定的 Block 物件做為新 TableCell 的初始內容。

TableCell()

初始化 TableCell 類別的新的空執行個體。

public:
 TableCell();
public TableCell ();
Public Sub New ()

適用於

TableCell(Block)

初始化 TableCell 類別的新執行個體,並將指定的 Block 物件做為新 TableCell 的初始內容。

public:
 TableCell(System::Windows::Documents::Block ^ blockItem);
public TableCell (System.Windows.Documents.Block blockItem);
new System.Windows.Documents.TableCell : System.Windows.Documents.Block -> System.Windows.Documents.TableCell
Public Sub New (blockItem As Block)

參數

blockItem
Block

Block 物件,用來指定新 TableCell 的初始內容。

範例

下列範例示範此建構函式的使用方式。

// A child Block element for the new TableCell element.
Paragraph parx = new Paragraph(new Run("A bit of text content..."));

// After this line executes, the new element "cellx"
// contains the specified Block element, "parx".
TableCell cellx = new TableCell(parx);
' A child Block element for the new TableCell element.
Dim parx As New Paragraph(New Run("A bit of text content..."))

' After this line executes, the new element "cellx"
' contains the specified Block element, "parx".
Dim cellx As New TableCell(parx)

適用於