menu

WPF

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

    Show / Hide Table of Contents

    Interface IScrollInfo

    Represents the interface which contains the default properties and methods for SfDiagram control.

    Namespace: Syncfusion.UI.Xaml.Diagram.Controls
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public interface IScrollInfo

    Properties

    CurrentZoom

    Gets the zooming level value of the diagram control.

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

    HorizontalOffset

    Gets a value that contains the horizontal offset of the diagram control.

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

    VerticalOffset

    Gets the vertical distance between the target origin and the diagram control alignment point.

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

    Viewport

    Gets the position and dimensions of the base tile for a diagram control.

    Declaration
    Rect Viewport { get; }
    Property Value
    Type
    System.Windows.Rect

    ViewportHeight

    Gets a value that contains the vertical size of the diagram control's viewport.

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

    ViewportWidth

    Gets a value that contains the horizontal size of the diagram control's viewport.

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

    Methods

    BringIntoCenter(Rect)

    To bring the specified bounds of diagram control into center of the view.

    Declaration
    void BringIntoCenter(Rect bounds)
    Parameters
    Type Name Description
    System.Windows.Rect bounds

    The bounds value which should be shown at center of the view.

    BringIntoViewport(Rect)

    To bring the specified bounds of diagram control into view.

    Declaration
    void BringIntoViewport(Rect bounds)
    Parameters
    Type Name Description
    System.Windows.Rect bounds

    The bounds value which should be shown into view.

    Pan(Point)

    Pans the diagram page by specified value.

    Declaration
    void Pan(Point delta)
    Parameters
    Type Name Description
    System.Windows.Point delta

    The point value that how much the diagram page should be pan.

    PanTo(Point)

    Pans the diagram page to specified position.

    Declaration
    void PanTo(Point position)
    Parameters
    Type Name Description
    System.Windows.Point position

    The point value where the entire diagram page should be pan.

    Reset()

    Clears all the panning opertions and removes all the panning relations of diagam control. Restores the panning position to origin of the diagram control by zoom level of One.

    Declaration
    void Reset()

    ResetPan()

    Clears all the panning opertions and removes all the panning relations of diagam control. Restores the panning position to origin of the diagram control by zoom level of CurrentZoom value.

    Declaration
    void ResetPan()

    ResetZoom()

    Clears all the zooming opertions and removes all the zooming relations of diagam control. Restores the diagram control page by zoom level of One.

    Declaration
    void ResetZoom()

    ZoomPan(IZoomParameter)

    To perform zooming and panning opertions to the diagram control.

    Declaration
    void ZoomPan(IZoomParameter param)
    Parameters
    Type Name Description
    IZoomParameter param

    A IZoomParameter value to perfom zooming and panning.

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