ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Core Namespace / ImGearDocumentPageArray Class / Add Method
Page to be added.




In This Topic
    Add Method (ImGearDocumentPageArray)
    In This Topic
    Adds a new ImGearPage to the end of the array of pages.
    Syntax
    'Declaration
     
    Public Overridable Function Add( _
       ByVal page As ImGearPage _
    ) As Integer
    'Usage
     
    Dim instance As ImGearDocumentPageArray
    Dim page As ImGearPage
    Dim value As Integer
     
    value = instance.Add(page)
    public virtual int Add( 
       ImGearPage page
    )
    public: virtual int Add( 
       ImGearPage* page
    ) 
    public:
    virtual int Add( 
       ImGearPage^ page
    ) 

    Parameters

    page
    Page to be added.

    Return Value

    Index in the array where new page is added.
    Remarks
    The method throws an exception if the page is already attached to another document.

    An exception is thrown also when the page type does not correspond with the document type array containing the page.

    See Also