menu

ASP.NET Web Forms

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

    Show / Hide Table of Contents

    Class ScrollSettings

    Inheritance
    System.Object
    EJTagHelper
    ScrollSettings
    Inherited Members
    EJTagHelper.GetControlDetails()
    EJTagHelper.GetControlDetails(String)
    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.JavaScript.DataVisualization.Models.Diagram
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class ScrollSettings : EJTagHelper

    Constructors

    ScrollSettings()

    Declaration
    public ScrollSettings()

    Properties

    HorizontalOffset

    Gets or sets the zoom value, zoom factor, scroll status and view port size of the diagram

    Declaration
    [JsonProperty("horizontalOffset")]
    public double HorizontalOffset { get; set; }
    Property Value
    Type Description
    System.Double

    0

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.ScrollSettings.HorizontalOffset = 50;
               ViewData["diagramModel"] = Model;

    MaxZoom

    Gets or sets Maximum zoom value to limit the diagram zoomIn

    Declaration
    [JsonProperty("maxZoom")]
    public double MaxZoom { get; set; }
    Property Value
    Type Description
    System.Double

    1.5

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.ScrollSettings.MaxZoom = 1.5;

    MinZoom

    Gets or sets the minimum zoom value to limit the diagram zoomOut

    Declaration
    [JsonProperty("minZoom")]
    public double MinZoom { get; set; }
    Property Value
    Type Description
    System.Double

    0.75

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.ScrollSettings.MinZoom = .75;

    Padding

    Gets or sets the scrollable region that is based on the scroll limit

    Declaration
    [JsonProperty("padding")]
    public Padding Padding { get; set; }
    Property Value
    Type Description
    Padding

    null

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.ScrollSettings.Padding = new Padding() { Bottom = 10, Right = 10, Left = 10, Top = 10 };

    VerticalOffset

    Gets or sets the vertical scroll offset

    Declaration
    [JsonProperty("verticalOffset")]
    public double VerticalOffset { get; set; }
    Property Value
    Type Description
    System.Double

    0

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.ScrollSettings.VerticalOffset = 10;

    ZoomFactor

    Gets or sets the zoomFactor where you can zoom in or out

    Declaration
    [JsonProperty("zoomFactor")]
    public double ZoomFactor { get; set; }
    Property Value
    Type Description
    System.Double

    0.2f

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.ScrollSettings.ZoomFactor = .5;
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved