PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / OnPageConfigure Method
The newly added C1Page object.

In This Topic
    OnPageConfigure Method (C1PrintDocument)
    In This Topic
    Called when a new empty page is created and added to the current document, raises the C1PrintDocument.PageConfigure event. When this method is called, the C1Page has already been added to the C1PrintDocument.Pages collection but has not yet been resolved. If overridden in a derived class, must call the base method; can be used to change the layout of the new page.
    Syntax
    'Declaration
     
    Protected Overridable Function OnPageConfigure( _
       ByVal page As C1Page _
    ) As PageLayout
    protected virtual PageLayout OnPageConfigure( 
       C1Page page
    )

    Parameters

    page
    The newly added C1Page object.

    Return Value

    The C1PrintDocument.PageLayout object created by the C1PrintDocument.PageConfigure event, or null.
    See Also