Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents Namespace > DocumentPages Class : CreatePage Method |
public DocumentPage CreatePage( LeadSizeD size, double resolution )
'Declaration
Public Function CreatePage( _ ByVal size As LeadSizeD, _ ByVal resolution As Double _ ) As DocumentPage
'Usage
Dim instance As DocumentPages Dim size As LeadSizeD Dim resolution As Double Dim value As DocumentPage value = instance.CreatePage(size, resolution)
public DocumentPage createPage(LeadSizeD size, double resolution)
public: DocumentPage^ CreatePage( LeadSizeD size, double resolution )
Use this method to create new pages to be add in this Document. The constructor of DocumentPage is not accessible and this is the only method that allows you to create a DocumentPage.
The created page is not added automatically, to the document you must use Add or Insert to add the page.
The returned DocumentPage does not have any data. It will only have size set as its Size and resolution as its Resolution. You must add the page to the collection before updating its data such as setting the image using SetImage or annotations using SetAnnotations.
size is in document units, refer to Documents Library Coordinate System for more information.
For an example, refer to Create.