本文整理汇总了VB.NET中System.Windows.Documents.FlowDocument.FlowDocument构造函数的典型用法代码示例。如果您正苦于以下问题:VB.NET FlowDocument构造函数的具体用法?VB.NET FlowDocument怎么用?VB.NET FlowDocument使用的例子?那么, 这里精选的构造函数代码示例或许可以为您提供帮助。
在下文中一共展示了FlowDocument构造函数的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: Paragraph
' A paragraph with sample text will serve as table content.
Dim tableText As New Paragraph(New Run("A bit of text content..."))
Dim sampleTable As New Table()
' Create and add a couple of columns.
sampleTable.Columns.Add(New TableColumn())
sampleTable.Columns.Add(New TableColumn())
' Create and add a row group and a couple of rows.
sampleTable.RowGroups.Add(New TableRowGroup())
sampleTable.RowGroups(0).Rows.Add(New TableRow())
sampleTable.RowGroups(0).Rows.Add(New TableRow())
' Create four cells initialized with the sample text paragraph.
sampleTable.RowGroups(0).Rows(0).Cells.Add(New TableCell(tableText))
sampleTable.RowGroups(0).Rows(0).Cells.Add(New TableCell(tableText))
sampleTable.RowGroups(0).Rows(1).Cells.Add(New TableCell(tableText))
sampleTable.RowGroups(0).Rows(1).Cells.Add(New TableCell(tableText))
' Finally, use the FlowDocument constructor to create a new FlowDocument containing
' the table constructed above.
Dim flowDocTable As New FlowDocument(sampleTable)