TableCell Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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();
public TableCell ();
Public Sub New ()
Applies to
TableCell(Block)
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)
Parameters
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);
' 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)
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.