C1.Silverlight.Pdf.5 Assembly > C1.Silverlight.Pdf Namespace > C1PdfDocument Class : CurrentPage Property |
The CurrentPage property determines which page of the document should receive the output from the methods that generate content (e.g. DrawString method).
The value is an integer ranging from -1 (no active page) to C1PdfDocumentBase.Pages. Count - 1.
You rarely have to use the CurrentPage property while creating a document. When a C1PdfDocument object is created, a blank page is automatically added and becomes the current page, so you can immediately start adding content to it. When the C1PdfDocumentBase.NewPage method is invoked, a new page is added to the document and becomes the current page.
The CurrentPage property is useful when you want to reopen pages that have already been generated and add content to them (for example, page headers and footers).
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2