Class X2Axis
X2Axis inherits from Axis, and defines the special characteristics of a horizontal axis, specifically located at the top of the Rect of the GraphPane object
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class X2Axis : Axis, ICloneable, ISerializableConstructors
| Improve this Doc View SourceX2Axis()
Default constructor that sets all X2Axis properties to default values as defined in the X2Axis.Default class
Declaration
public X2Axis()X2Axis(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected X2Axis(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 | 
X2Axis(String)
Default constructor that sets all X2Axis properties to default values as defined in the X2Axis.Default class, except for the axis title
Declaration
public X2Axis(string title)Parameters
| Type | Name | Description | 
|---|---|---|
| String | title | The Title for this axis | 
X2Axis(X2Axis)
The Copy Constructor
Declaration
public X2Axis(X2Axis rhs)Parameters
| Type | Name | Description | 
|---|---|---|
| X2Axis | rhs | The X2Axis object from which to copy | 
Fields
| Improve this Doc View Sourceschema2
Current schema value that defines the version of the serialized file
Declaration
public const int schema2 = 11Field Value
| Type | Description | 
|---|---|
| Int32 | 
Methods
| Improve this Doc View SourceClone()
Typesafe, deep-copy clone method.
Declaration
public X2Axis Clone()Returns
| Type | Description | 
|---|---|
| X2Axis | A new, independent copy of this class | 
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
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.
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
| Improve this Doc View SourceSetTransformMatrix(Graphics, GraphPane, Single)
Setup the Transform Matrix to handle drawing of this X2Axis
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
Explicit Interface Implementations
| Improve this Doc View SourceICloneable.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 |