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)

适用于