TableCell 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 TableCell 類別的新執行個體。
多載
TableCell() |
初始化 TableCell 類別的新的空執行個體。 |
TableCell(Block) |
TableCell()
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)
參數
範例
下列範例示範此建構函式的使用方式。
// 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)