PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / PageAsMetafile Method
The 1-based page number.

In This Topic
    PageAsMetafile Method (SampleC1PrintDocument)
    In This Topic
    Returns a System.Drawing.Imaging.Metafile representing the specified page.
    Syntax
    'Declaration
     
    Public Function PageAsMetafile( _
       ByVal pageNo As Integer _
    ) As Metafile
    public Metafile PageAsMetafile( 
       int pageNo
    )

    Parameters

    pageNo
    The 1-based page number.

    Return Value

    The System.Drawing.Imaging.Metafile representing the specified page, or null if the page was not found.
    See Also