VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Wpf.Print Namespace / WpfPagePrintEventArgs Class / WpfPagePrintEventArgs Constructor(Boolean,DrawingContext,Size,Rect,Int32)
Syntax Requirements SeeAlso
In This Topic
    WpfPagePrintEventArgs Constructor(Boolean,DrawingContext,Size,Rect,Int32)
    In This Topic
    Initializes a new instance of the WpfPagePrintEventArgs class.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal isPreview
    A value indicating whether the WpfImagePrintManager is used for print preview.
    As Boolean, _
    ByVal drawingContext
    A DrawingContext used to paint the page.
    As System.Windows.Media.DrawingContext, _
    ByVal pageSize
    A System.Windows.Size structure that defines the size of the page, in device-independent pixels (1/96th inch).
    As System.Windows.Size, _
    ByVal pageArea
    A System.Windows.Rect structure that defines an area on the page, in device-independent pixels (1/96th inch), within which images can be printed.
    As System.Windows.Rect, _
    ByVal pageIndex
    The zero-based index of the printing page.
    As System.Int32 _
    )
    public WpfPagePrintEventArgs(
    bool isPreview,
    System.Windows.Media.DrawingContext drawingContext,
    System.Windows.Size pageSize,
    System.Windows.Rect pageArea,
    System.Int32 pageIndex
    )
    public: WpfPagePrintEventArgs(
    bool isPreview,
    System.Windows.Media.DrawingContext drawingContext,
    System.Windows.Size* pageSize,
    System.Windows.Rect* pageArea,
    System.Int32 pageIndex
    )
    public:
    WpfPagePrintEventArgs(
    bool isPreview,
    System.Windows.Media.DrawingContext drawingContext,
    System.Windows.Size^ pageSize,
    System.Windows.Rect^ pageArea,
    System.Int32 pageIndex
    )

    Parameters

    isPreview
    A value indicating whether the WpfImagePrintManager is used for print preview.
    drawingContext
    A DrawingContext used to paint the page.
    pageSize
    A System.Windows.Size structure that defines the size of the page, in device-independent pixels (1/96th inch).
    pageArea
    A System.Windows.Rect structure that defines an area on the page, in device-independent pixels (1/96th inch), within which images can be printed.
    pageIndex
    The zero-based index of the printing page.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also