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
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class XAxis : Axis, ICloneable, ISerializable
Constructors
| Improve this Doc View SourceXAxis()
Default constructor that sets all XAxis properties to default values as defined in the XAxis.Default class
Declaration
public XAxis()
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 |
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 |
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 Sourceschema2
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 SourceClone()
Typesafe, deep-copy clone method.
Declaration
public XAxis Clone()
Returns
Type | Description |
---|---|
XAxis | 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 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
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 |