TableCell Constructors

Definition

Initializes a new instance of the TableCell class.

Overloads

TableCell()

Initializes a new, empty instance of the TableCell class.

TableCell(Block)

Initializes a new instance of the TableCell class, taking a specified Block object as the initial contents of the new TableCell.

TableCell()

Initializes a new, empty instance of the TableCell class.

public TableCell ();

Applies to

.NET Framework 4.8.1 және басқа нұсқалар
Өнім Нұсқалар
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

TableCell(Block)

Initializes a new instance of the TableCell class, taking a specified Block object as the initial contents of the new TableCell.

public TableCell (System.Windows.Documents.Block blockItem);

Parameters

blockItem
Block

A Block object specifying the initial contents of the new TableCell.

Examples

The following example demonstrates usage of this constructor.

// 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);

Applies to

.NET Framework 4.8.1 және басқа нұсқалар
Өнім Нұсқалар
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9