menu

WPF

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

    Show / Hide Table of Contents

    Class PrintPreviewPanel

    Represents a panel that contains the PrintPreviewPanel to group the collection of controls.

    Inheritance
    System.Object
    PrintPreviewPanel
    Implements
    System.Windows.Controls.Primitives.IScrollInfo
    Namespace: Syncfusion.Windows.Shared.Printing
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public sealed class PrintPreviewPanel : Panel, IScrollInfo

    Constructors

    PrintPreviewPanel()

    Initializes a new instance of PrintPreviewPanel class.

    Declaration
    public PrintPreviewPanel()

    PrintPreviewPanel(PrintManager)

    Initializes a new instance of PrintPreviewPanel class.

    Declaration
    public PrintPreviewPanel(PrintManager printManager)
    Parameters
    Type Name Description
    PrintManager printManager

    Properties

    CanHorizontallyScroll

    Gets or sets a value that indicates whether the print preview panel can scroll horizontally.

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

    true if th print preview panel scrolled horizontally; otherwise, false;

    CanVerticallyScroll

    Gets or sets a value that indicates whether the print preview panel can scroll vertically.

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

    true if th print preview panel scrolled vertically; otherwise, false;

    ExtentHeight

    Gets the vertical size of the extent.

    Declaration
    public double ExtentHeight { get; }
    Property Value
    Type
    System.Double

    ExtentWidth

    Gets the horizontal size of the extent.

    Declaration
    public double ExtentWidth { get; }
    Property Value
    Type
    System.Double

    HorizontalOffset

    Gets the horizontal offset of the print content.

    Declaration
    public double HorizontalOffset { get; }
    Property Value
    Type
    System.Double

    ScrollOwner

    Gets or sets a value that identifies the container that controls the scrolling behavior in print preview panel.

    Declaration
    public ScrollViewer ScrollOwner { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.ScrollViewer

    The System.Windows.Controls.ScrollViewer that control scrolling behavior in print preview panel.

    VerticalOffset

    Gets the vertical offset of the print content.

    Declaration
    public double VerticalOffset { get; }
    Property Value
    Type
    System.Double

    ViewportHeight

    Gets the vertical size of the print content's viewport.

    Declaration
    public double ViewportHeight { get; }
    Property Value
    Type
    System.Double

    ViewportWidth

    Gets the horizontal size of the print content's viewport.

    Declaration
    public double ViewportWidth { get; }
    Property Value
    Type
    System.Double

    Methods

    ArrangeOverride(Size)

    Arranges the content of the PrintPreviewPanel.

    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 PrintPreviewPanel.

    LineDown()

    Scrolls the contents of the print preview panel down by one line.

    Declaration
    public void LineDown()

    LineLeft()

    Scrolls the contents of the print preview panel to the left by one line.

    Declaration
    public void LineLeft()

    LineRight()

    Scrolls the contents of the print preview panel to the right by one line.

    Declaration
    public void LineRight()

    LineUp()

    Scrolls the contents of the print preview panel upward by one line.

    Declaration
    public void LineUp()

    MakeVisible(Visual, Rect)

    Scrolls to the specified coordinates and makes that part of a System.Windows.Media.Visual visible.

    Declaration
    public Rect MakeVisible(Visual visual, Rect rectangle)
    Parameters
    Type Name Description
    System.Windows.Media.Visual visual

    The System.Windows.Media.Visual that becomes visible.

    System.Windows.Rect rectangle

    The System.Windows.Rect that represents coordinate space within a visual.

    Returns
    Type
    System.Windows.Rect

    MeasureOverride(Size)

    Determines the desired size of the PrintPreviewPanel.

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

    The size that the PrintPreviewPanel can occupy.

    Returns
    Type Description
    System.Windows.Size

    The desired size of SfDataGrid.

    MouseWheelDown()

    Scrolls the content of print preview panel logically downward in response to a downward click of the mouse wheel button.

    Declaration
    public void MouseWheelDown()

    MouseWheelLeft()

    Scrolls the content of print preview panel logically to the left in response to a left click of the mouse wheel button.

    Declaration
    public void MouseWheelLeft()

    MouseWheelRight()

    Scrolls the content of print preview panel logically to the right in response to a right click of the mouse wheel button.

    Declaration
    public void MouseWheelRight()

    MouseWheelUp()

    Scrolls the content of print preview panel logically upward in response to an upward click of the mouse wheel button.

    Declaration
    public void MouseWheelUp()

    PageDown()

    Scrolls the content of print preview panel downward by one page.

    Declaration
    public void PageDown()

    PageLeft()

    Scrolls the content of print preview panel to the left by one page.

    Declaration
    public void PageLeft()

    PageRight()

    Scrolls the content of print preview panel to the right by one page.

    Declaration
    public void PageRight()

    PageUp()

    Scrolls the content of print preview panel upward by one page.

    Declaration
    public void PageUp()

    SetHorizontalOffset(Double)

    Sets the amount of horizontal offset.

    Declaration
    public void SetHorizontalOffset(double offset)
    Parameters
    Type Name Description
    System.Double offset

    The degree to which content is horizontally offset from the containing viewport.

    SetVerticalOffset(Double)

    Sets the amount of vertical offset.

    Declaration
    public void SetVerticalOffset(double offset)
    Parameters
    Type Name Description
    System.Double offset

    The degree to which content is horizontally offset from the containing viewport.

    Implements

    System.Windows.Controls.Primitives.IScrollInfo
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved