Search Results for

    Show / Hide Table of Contents

    Class Chart

    Class that handles the properties of the charting area (where the curves are actually drawn), which is bounded by the XAxis, YAxis, and Y2Axis.

    Inheritance
    Object
    Chart
    Implements
    ICloneable
    ISerializable
    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
    [Serializable]
    public class Chart : ICloneable, ISerializable

    Constructors

    | Improve this Doc View Source

    Chart()

    Default constructor.

    Declaration
    public Chart()
    | Improve this Doc View Source

    Chart(SerializationInfo, StreamingContext)

    Constructor for deserializing objects

    Declaration
    protected Chart(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    A SerializationInfo instance that defines the serialized data

    StreamingContext context

    A StreamingContext instance that contains the serialized data

    | Improve this Doc View Source

    Chart(Chart)

    Copy constructor

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

    The source Chart to be copied.

    Fields

    | Improve this Doc View Source

    schema

    Current schema value that defines the version of the serialized file

    Declaration
    public const int schema = 10
    Field Value
    Type Description
    Int32

    Properties

    | Improve this Doc View Source

    Border

    Gets or sets the Border class for drawing the border border around the Chart

    Declaration
    public Border Border { get; set; }
    Property Value
    Type Description
    Border
    See Also
    BorderColor
    BorderPenWidth
    | Improve this Doc View Source

    Fill

    Gets or sets the Fill data for this Chart.

    Declaration
    public Fill Fill { get; set; }
    Property Value
    Type Description
    Fill
    | Improve this Doc View Source

    IsRectAuto

    Gets or sets a boolean value that determines whether or not the Rect will be calculated automatically (almost always true).

    Declaration
    public bool IsRectAuto { get; set; }
    Property Value
    Type Description
    Boolean

    true to have ZedGraph calculate the ChartRect, false to do it yourself

    Remarks

    If you have a need to set the ChartRect manually, such as you have multiple graphs on a page and you want to line up the edges perfectly, you can set this value to false. If you set this value to false, you must also manually set the Rect property. You can easily determine the ChartRect that ZedGraph would have calculated by calling the CalcChartRect(Graphics) method, which returns a chart rect sized for the current data range, scale sizes, etc.

    | Improve this Doc View Source

    Rect

    Gets or sets the rectangle that contains the area bounded by the axes (XAxis, YAxis, and Y2Axis). If you set this value manually, then the IsRectAuto value will automatically be set to false.

    Declaration
    public RectangleF Rect { get; set; }
    Property Value
    Type Description
    RectangleF

    The rectangle units are in screen pixels

    Methods

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public Chart Clone()
    Returns
    Type Description
    Chart

    A new, independent copy of this class

    | Improve this Doc View Source

    GetObjectData(SerializationInfo, StreamingContext)

    Populates a SerializationInfo instance with the data needed to serialize the target object

    Declaration
    [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
    public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    A SerializationInfo instance that defines the serialized data

    StreamingContext context

    A StreamingContext instance that contains the serialized data

    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
    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX