WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramPrintManager

    Show / Hide Table of Contents

    Class DiagramPrintManager

    Informs windows that an application wishes to participate in PrintManager. The PrintManager class is also used for programmatically initiating printing.

    Inheritance
    System.Object
    PrintManager
    DiagramPrintManager
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    Inherited Members
    PrintManager.isSuspended
    PrintManager.SelectedPageMediaName
    PrintManager.isPagesInitialized
    PrintManager.OnPrintPropertyChanged()
    PrintManager.Print()
    PrintManager.GetPrintDocument()
    PrintManager.GetPrintDocument(Int32, Int32)
    PrintManager.OnSelectedPrinterChanged(PrintQueue)
    PrintManager.Dispose()
    PrintManager.Dispose(Boolean)
    PrintManager.PrintSettings
    PrintManager.Pages
    PrintManager.SelectedScaleIndex
    PrintManager.PageSizeDisplayUnit
    PrintManager.PageCount
    PrintManager.PageMargin
    PrintManager.PageHeight
    PrintManager.PageWidth
    PrintManager.PageHeaderHeight
    PrintManager.PageFooterHeight
    PrintManager.PageHeaderTemplate
    PrintManager.PageFooterTemplate
    PrintManager.Collation
    PrintManager.PageRangeSelection
    PrintManager.CopiesCount
    PrintManager.FromPage
    PrintManager.ToPage
    PrintManager.PageOrientation
    PrintManager.Printers
    PrintManager.SelectedPrinter
    PrintManager.PageSizeOptions
    PrintManager.PropertyChanged
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public class DiagramPrintManager : PrintManager, INotifyPropertyChanged, IDisposable

    Constructors

    DiagramPrintManager(PrintingService)

    Initialize a new instance of the DiagramPrintManager.

    Declaration
    public DiagramPrintManager(PrintingService printingService)
    Parameters
    Type Name Description
    PrintingService printingService

    Instance of PrintingService

    Methods

    ComputePageCount()

    Method to count the pages.

    Declaration
    protected override void ComputePageCount()
    Overrides
    PrintManager.ComputePageCount()

    CreatePage(Int32)

    Method to create printing pages based on page index values.

    Declaration
    protected override PrintPageControl CreatePage(int pageIndex)
    Parameters
    Type Name Description
    System.Int32 pageIndex

    Gets page index value.

    Returns
    Type Description
    PrintPageControl
    Overrides
    PrintManager.CreatePage(Int32)

    CreatePage(Int32, PrintPageControl)

    Method to create printing diagram pages based on page index values and printing page control of diagram.

    Declaration
    protected override PrintPageControl CreatePage(int pageIndex, PrintPageControl pageControl)
    Parameters
    Type Name Description
    System.Int32 pageIndex
    PrintPageControl pageControl
    Returns
    Type Description
    PrintPageControl

    Returns printing page control.

    Overrides
    PrintManager.CreatePage(Int32, PrintPageControl)

    GetScaleOptions(String)

    To get scale values of diagram pages for printing.

    Declaration
    protected override List<PrintScaleInfo> GetScaleOptions(string themeName)
    Parameters
    Type Name Description
    System.String themeName
    Returns
    Type Description
    System.Collections.Generic.List<PrintScaleInfo>
    Overrides
    PrintManager.GetScaleOptions(String)

    InitializeProperties()

    Initializes all properties values of DiagramPrintManager class.

    Declaration
    protected override void InitializeProperties()
    Overrides
    PrintManager.InitializeProperties()

    OnPageSizeChanged(Double, Double)

    Method to change the page size of printing pages of diagram control.

    Declaration
    protected override void OnPageSizeChanged(double width, double height)
    Parameters
    Type Name Description
    System.Double width

    Gets page width.

    System.Double height

    Gets page height.

    Overrides
    PrintManager.OnPageSizeChanged(Double, Double)

    OnPrintMarginChanged(Thickness)

    Method to change the margin values of printing pages of diagram control.

    Declaration
    protected override void OnPrintMarginChanged(Thickness value)
    Parameters
    Type Name Description
    System.Windows.Thickness value

    Gets margin value.

    Overrides
    PrintManager.OnPrintMarginChanged(Thickness)

    OnPrintOrientationChanged(PrintOrientation)

    Method to change the page orientations of printing pages of diagram control.

    Declaration
    protected override void OnPrintOrientationChanged(PrintOrientation value)
    Parameters
    Type Name Description
    PrintOrientation value

    Gets page orientation value.

    Overrides
    PrintManager.OnPrintOrientationChanged(PrintOrientation)

    OnPrintScaleOptionChanged(Int32)

    Method to change the scaling or zooming level of printing pages of diagram control.

    Declaration
    protected override void OnPrintScaleOptionChanged(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Gets page index value.

    Overrides
    PrintManager.OnPrintScaleOptionChanged(Int32)

    OnPropertyChanged(String)

    Method to notify when property values has been changed.

    Declaration
    protected override void OnPropertyChanged(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Property name.

    Overrides
    PrintManager.OnPropertyChanged(String)

    Print(PrintDialog, Boolean)

    Method to initiate printing the diagram pages.

    Declaration
    public override void Print(PrintDialog printDialog, bool showPrintDialog)
    Parameters
    Type Name Description
    System.Windows.Controls.PrintDialog printDialog

    Gets print preview dialouge box.

    System.Boolean showPrintDialog

    Gets boolean to show print dialouge.

    Overrides
    PrintManager.Print(PrintDialog, Boolean)

    PrintDocument(PrintDialog, Nullable<Boolean>)

    Prints the content of page control according to the print ticket and print queue configures in the print dialog.

    Declaration
    protected override void PrintDocument(PrintDialog printDialog, bool? canPrint)
    Parameters
    Type Name Description
    System.Windows.Controls.PrintDialog printDialog

    Configures the PrintTicket and PrintQueue according to the user input for printing.

    System.Nullable<System.Boolean> canPrint

    Decides whether the print can be performed or not.

    Overrides
    PrintManager.PrintDocument(PrintDialog, Nullable<Boolean>)

    Implements

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