menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PrintPagePanel - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PrintPagePanel

    Represents a panel that arranges the cell content of SfDataGrid for print job.

    Inheritance
    System.Object
    PrintPagePanel
    Implements
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class PrintPagePanel : Panel, IDisposable

    Constructors

    PrintPagePanel()

    Initializes a new instance of PrintPagePanel class.

    Declaration
    public PrintPagePanel()

    PrintPagePanel(Action<DrawingContext, List<RowInfo>>, Boolean)

    Initializes a new instance of PrintPagePanel class.

    Declaration
    public PrintPagePanel(Action<DrawingContext, List<RowInfo>> OnRender, bool allowPrintByDrawing)
    Parameters
    Type Name Description
    System.Action<System.Windows.Media.DrawingContext, System.Collections.Generic.List<RowInfo>> OnRender

    Contains the visual and cell content to arrange it in page panel.

    System.Boolean allowPrintByDrawing

    Indicates whether the printing is based on drawing.

    Methods

    ArrangeOverride(Size)

    Arranges the content of the page panel.

    Declaration
    protected override Size ArrangeOverride(Size finalSize)
    Parameters
    Type Name Description
    System.Windows.Size finalSize

    The computed size that is used to arrange the content.

    Returns
    Type Description
    System.Windows.Size

    The size consumed by page panel.

    Dispose()

    Releases all the resources used by the PrintPagePanel class.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Disposes all the resources used by the PrintPagePanel class.

    Declaration
    protected virtual void Dispose(bool isDisposing)
    Parameters
    Type Name Description
    System.Boolean isDisposing

    Indicates whether the call is from Dispose method or from a finalizer.

    MeasureOverride(Size)

    Determines the desired size of the page panel for printing .

    Declaration
    protected override Size MeasureOverride(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize

    The size that the page panel can occupy.

    Returns
    Type Description
    System.Windows.Size

    The desired size of page panel.

    OnRender(DrawingContext)

    Draws the content of the specified DrawingContext object to page panel element .

    Declaration
    protected override void OnRender(DrawingContext Drawingcontext)
    Parameters
    Type Name Description
    System.Windows.Media.DrawingContext Drawingcontext

    The corresponding Drawingcontext to draw.

    Implements

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