PDF for WinRT
CurrentPage Property (C1PdfDocument)


Gets or sets the index of the current page within the document.
Syntax
'Declaration
 
Public Overrides Property CurrentPage As Integer
'Usage
 
Dim instance As C1PdfDocument
Dim value As Integer
 
instance.CurrentPage = value
 
value = instance.CurrentPage
public override int CurrentPage {get; set;}
Remarks

The CurrentPage property determines which page of the document should receive the output from the methods that generate content (e.g. DrawString(String,Font,Color,Rect,StringFormat)).

The value is an integer ranging from -1 (no active page) to 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).

Requirements

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

See Also

Reference

C1PdfDocument Class
C1PdfDocument Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback