PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / C1Page Class / AsMetafile Method / AsMetafile(Graphics,EmfType,Boolean,Boolean) Method
Specifies the reference graphics for the metafile.
Specifies the metafile type.
Indicates whether to fill the page with white color before drawing.
Indicates whether to draw input controls (see RenderInputBase).

In This Topic
    AsMetafile(Graphics,EmfType,Boolean,Boolean) Method
    In This Topic
    Returns a System.Drawing.Imaging.Metafile representing the current page.
    Syntax
    'Declaration
     
    Public Overloads Function AsMetafile( _
       ByVal referenceGraphics As Graphics, _
       ByVal emfType As EmfType, _
       ByVal whiten As Boolean, _
       ByVal renderInputControls As Boolean _
    ) As Metafile
    public Metafile AsMetafile( 
       Graphics referenceGraphics,
       EmfType emfType,
       bool whiten,
       bool renderInputControls
    )

    Parameters

    referenceGraphics
    Specifies the reference graphics for the metafile.
    emfType
    Specifies the metafile type.
    whiten
    Indicates whether to fill the page with white color before drawing.
    renderInputControls
    Indicates whether to draw input controls (see RenderInputBase).

    Return Value

    The System.Drawing.Imaging.Metafile representing the current page.
    See Also