TableCell Konstruktoren

Definition

Initialisiert eine neue Instanz der TableCell-Klasse.

Überlädt

Name Beschreibung
TableCell()

Initialisiert eine neue, leere Instanz der TableCell Klasse.

TableCell(Block)

Initialisiert eine neue Instanz der TableCell Klasse, wobei ein angegebenes Block -Objekt als anfänglicher Inhalt des neuen TableCellverwendet wird.

TableCell()

Initialisiert eine neue, leere Instanz der TableCell Klasse.

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

Gilt für:

TableCell(Block)

Initialisiert eine neue Instanz der TableCell Klasse, wobei ein angegebenes Block -Objekt als anfänglicher Inhalt des neuen TableCellverwendet wird.

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)

Parameter

blockItem
Block

Ein Block Objekt, das den anfänglichen Inhalt des neuen TableCellangibt.

Beispiele

Im folgenden Beispiel wird die Verwendung dieses Konstruktors veranschaulicht.

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

Gilt für: