本文整理匯總了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()