TableCell Constructors
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.
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. |
Initializes a new, empty instance of the TableCell class.
public:
TableCell();
public TableCell ();
Public Sub New ()
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 |
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
.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 |
.NET кері байланысы
.NET — бастапқы коды ашық жоба. Пікір қалдыру үшін сілтемені таңдаңыз: