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)