Search Results for

    Show / Hide Table of Contents

    Class XAxis

    XAxis inherits from Axis, and defines the special characteristics of a horizontal axis, specifically located at the bottom of the Rect of the GraphPane object

    Inheritance
    Object
    Axis
    XAxis
    Implements
    ICloneable
    ISerializable
    Inherited Members
    Axis._isVisible
    Axis._isAxisSegmentVisible
    Axis._title
    Axis.Tag
    Axis.ScaleFormatEvent
    Axis.ScaleTitleEvent
    Axis.schema
    Axis.Scale
    Axis.Cross
    Axis.CrossAuto
    Axis.MinSpace
    Axis.Color
    Axis.MajorTic
    Axis.MinorTic
    Axis.MajorGrid
    Axis.MinorGrid
    Axis.IsVisible
    Axis.IsAxisSegmentVisible
    Axis.Type
    Axis.Title
    Axis.AxisGap
    Axis.ResetAutoScale(GraphPane, Graphics)
    Axis.Draw(Graphics, GraphPane, Single, Single)
    Axis.SetMinSpaceBuffer(Graphics, GraphPane, Single, Boolean)
    Axis.CalcSpace(Graphics, GraphPane, Single, Single)
    Axis.DrawMinorTics(Graphics, GraphPane, Double, Single, Single, Single)
    Axis.DrawTitle(Graphics, GraphPane, Single, Single)
    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 XAxis : Axis, ICloneable, ISerializable

    Constructors

    | Improve this Doc View Source

    XAxis()

    Default constructor that sets all XAxis properties to default values as defined in the XAxis.Default class

    Declaration
    public XAxis()
    | Improve this Doc View Source

    XAxis(SerializationInfo, StreamingContext)

    Constructor for deserializing objects

    Declaration
    protected XAxis(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

    XAxis(String)

    Default constructor that sets all XAxis properties to default values as defined in the XAxis.Default class, except for the axis title

    Declaration
    public XAxis(string title)
    Parameters
    Type Name Description
    String title

    The Title for this axis

    | Improve this Doc View Source

    XAxis(XAxis)

    The Copy Constructor

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

    The XAxis object from which to copy

    Fields

    | Improve this Doc View Source

    schema2

    Current schema value that defines the version of the serialized file

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

    Methods

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public XAxis Clone()
    Returns
    Type Description
    XAxis

    A new, independent copy of this class

    | Improve this Doc View Source

    GetCrossAxis(GraphPane)

    Gets the "Cross" axis that corresponds to this axis.

    Declaration
    public override Axis GetCrossAxis(GraphPane pane)
    Parameters
    Type Name Description
    GraphPane pane

    A reference to the GraphPane object that is the parent or owner of this object.

    Returns
    Type Description
    Axis
    Overrides
    Axis.GetCrossAxis(GraphPane)
    Remarks

    The cross axis is the axis which determines the of this Axis when the Cross property is used. The cross axis for any XAxis or X2Axis is always the primary YAxis, and the cross axis for any YAxis or Y2Axis is always the primary XAxis.

    | 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 override 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

    Overrides
    Axis.GetObjectData(SerializationInfo, StreamingContext)
    | Improve this Doc View Source

    SetTransformMatrix(Graphics, GraphPane, Single)

    Setup the Transform Matrix to handle drawing of this XAxis

    Declaration
    public override void SetTransformMatrix(Graphics g, GraphPane pane, float scaleFactor)
    Parameters
    Type Name Description
    Graphics g

    A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.

    GraphPane pane

    A reference to the GraphPane object that is the parent or owner of this object.

    Single scaleFactor

    The scaling factor to be used for rendering objects. This is calculated and passed down by the parent GraphPane object using the CalcScaleFactor() method, and is used to proportionally adjust font sizes, etc. according to the actual size of the graph.

    Overrides
    Axis.SetTransformMatrix(Graphics, GraphPane, Single)

    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