Search Results for

    Show / Hide Table of Contents

    Class ZoomState

    A class that captures all the scale range settings for a GraphPane.

    Inheritance
    Object
    ZoomState
    Implements
    ICloneable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: ZedGraph
    Assembly: ZedGraph.dll
    Syntax
    public class ZoomState : ICloneable
    Remarks

    This class is used to store scale ranges in order to allow zooming out to prior scale range states. ZoomState objects are maintained in the ZoomStateStack collection. The ZoomState object holds a ScaleState object for each of the three axes; the XAxis, the YAxis, and the Y2Axis.

    Constructors

    | Improve this Doc View Source

    ZoomState(GraphPane, ZoomState.StateType)

    Construct a ZoomState object from the scale ranges settings contained in the specified GraphPane.

    Declaration
    public ZoomState(GraphPane pane, ZoomState.StateType type)
    Parameters
    Type Name Description
    GraphPane pane

    The GraphPane from which to obtain the scale range values.

    ZoomState.StateType type

    A ZoomState.StateType enumeration that indicates whether this saved state is from a pan or zoom.

    | Improve this Doc View Source

    ZoomState(ZoomState)

    The Copy Constructor

    Declaration
    public ZoomState(ZoomState rhs)
    Parameters
    Type Name Description
    ZoomState rhs

    The ZoomState object from which to copy

    Properties

    | Improve this Doc View Source

    Type

    Gets a ZoomState.StateType value indicating the type of action (zoom or pan) saved by this ZoomState.

    Declaration
    public ZoomState.StateType Type { get; }
    Property Value
    Type Description
    ZoomState.StateType
    | Improve this Doc View Source

    TypeString

    Gets a string representing the type of adjustment that was made when this scale state was saved.

    Declaration
    public string TypeString { get; }
    Property Value
    Type Description
    String

    A string representation for the state change type; typically "Pan", "Zoom", or "Scroll".

    Methods

    | Improve this Doc View Source

    ApplyState(GraphPane)

    Copy the properties from this ZoomState out to the specified GraphPane.

    Declaration
    public void ApplyState(GraphPane pane)
    Parameters
    Type Name Description
    GraphPane pane

    The GraphPane to which the scale range properties should be copied.

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public ZoomState Clone()
    Returns
    Type Description
    ZoomState

    A new, independent copy of this class

    | Improve this Doc View Source

    IsChanged(GraphPane)

    Determine if the state contained in this ZoomState object is different from the state of the specified GraphPane.

    Declaration
    public bool IsChanged(GraphPane pane)
    Parameters
    Type Name Description
    GraphPane pane

    The GraphPane object with which to compare states.

    Returns
    Type Description
    Boolean

    true if the states are different, false otherwise

    Explicit Interface Implementations

    | Improve this Doc View Source

    ICloneable.Clone()

    Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone()

    Declaration
    object ICloneable.Clone()
    Returns
    Type Description
    Object

    A deep copy of this object

    Implements

    System.ICloneable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX