WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PrintingService - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PrintingService

    Represent the class for printing services.

    Inheritance
    System.Object
    PrintingService
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public class PrintingService : Control, INotifyPropertyChanged, ISharedData, IDisposable

    Constructors

    PrintingService()

    Initializes a new instance of the PrintingService method.

    Declaration
    public PrintingService()

    Fields

    _mShowDialog

    Defines ShowDialog

    Declaration
    public bool _mShowDialog
    Field Value
    Type Description
    System.Boolean

    Properties

    DPIX

    Gets or sets the horizontal resolution of the printing.

    Declaration
    public double DPIX { get; set; }
    Property Value
    Type Description
    System.Double

    DPIY

    Gets or sets the vertical resolution of the printing.

    Declaration
    public double DPIY { get; set; }
    Property Value
    Type Description
    System.Double

    PrintManager

    Gets or sets the DiagramPrintManager.

    Declaration
    public DiagramPrintManager PrintManager { get; set; }
    Property Value
    Type Description
    DiagramPrintManager

    PrintMediaSize

    Gets or sets PrintMediaSize

    Declaration
    public PageMediaSizeName PrintMediaSize { get; set; }
    Property Value
    Type Description
    System.Printing.PageMediaSizeName

    PrintOrientation

    Gets or sets Print Orientation

    Declaration
    public PageOrientation PrintOrientation { get; set; }
    Property Value
    Type Description
    PageOrientation

    PrintPreviewStretch

    Gets or sets PrintPreviewStretch

    Declaration
    public Stretch PrintPreviewStretch { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Stretch

    PrintSettings

    Gets or sets the PrintSettingsBase.

    Declaration
    public PrintSettingsBase PrintSettings { get; set; }
    Property Value
    Type Description
    PrintSettingsBase

    ShowDialog

    Gets or sets ShowDialog

    Declaration
    public bool ShowDialog { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    GetPrintInfo(PrintInfo)

    Specifies a method to customize the printing.

    Declaration
    protected virtual void GetPrintInfo(PrintInfo args)
    Parameters
    Type Name Description
    PrintInfo args

    Instance of PrintInfo

    Print()

    Used to print the diagram in advance mode.

    Declaration
    public void Print()

    ShowClassicPrintPreview()

    Specifies the method to print the diagram in Classic mode.

    Declaration
    public void ShowClassicPrintPreview()

    ShowPrintDialog(FrameworkElement, PrintPreviewControl)

    Initializes a new instance of the ShowPrintDialog(FrameworkElement, PrintPreviewControl) method.

    Declaration
    public void ShowPrintDialog(FrameworkElement element, PrintPreviewControl printpreview)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element

    Gets element value

    PrintPreviewControl printpreview

    Gets printpreview value

    Events

    PropertyChanged

    Defines PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Explicit Interface Implementations

    IDisposable.Dispose()

    Defines the Dispose of the printing

    Declaration
    void IDisposable.Dispose()

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved