本文整理汇总了VB.NET中System.Windows.Documents.PageContent类的典型用法代码示例。如果您正苦于以下问题:VB.NET PageContent类的具体用法?VB.NET PageContent怎么用?VB.NET PageContent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PageContent类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: CreateFixedDocumentWithPages
' ------------------- CreateFixedDocumentWithPages -------------------
''' <summary>
''' Creates a FixedDocument with fixed pages.</summary>
''' <returns>
''' A FixedDocument containing fixed pages.</returns>
Public Function CreateFixedDocumentWithPages() As FixedDocument
' Create a FixedDocument
Dim fixedDocument As FixedDocument = CreateFixedDocument()
' Add Page 1 to a fixed document
Dim page1Content As PageContent = CreateFirstPageContent()
fixedDocument.Pages.Add(page1Content)
' Adding Page 2 to a fixed document
Dim page2Content As PageContent = CreateSecondPageContent()
fixedDocument.Pages.Add(page2Content)
' Adding Page 3 to a fixed document
Dim page3Content As PageContent = CreateThirdPageContent()
fixedDocument.Pages.Add(page3Content)
' Adding Page 4 to a fixed document;
Dim page4Content As PageContent = CreateFourthPageContent()
fixedDocument.Pages.Add(page4Content)
' Adding Page 5 to a fixed document;
Dim page5Content As PageContent = CreateFifthPageContent()
fixedDocument.Pages.Add(page5Content)
Return fixedDocument
End Function ' end:CreateFixedDocumentWithPages()