Class MajorGrid
Class that handles the data associated with the major grid lines on the chart. Inherits from MinorGrid.
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class MajorGrid : MinorGrid, ICloneable, ISerializableConstructors
| Improve this Doc View SourceMajorGrid()
Default constructor
Declaration
public MajorGrid()MajorGrid(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected MajorGrid(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 | 
MajorGrid(MajorGrid)
Copy constructor
Declaration
public MajorGrid(MajorGrid rhs)Parameters
| Type | Name | Description | 
|---|---|---|
| MajorGrid | rhs | The source MajorGrid to be copied. | 
Fields
| Improve this Doc View Sourceschema2
Current schema value that defines the version of the serialized file
Declaration
public const int schema2 = 10Field Value
| Type | Description | 
|---|---|
| Int32 | 
Properties
| Improve this Doc View SourceIsZeroLine
Gets or sets a boolean value that determines if a line will be drawn at the zero value for the axis.
Declaration
public bool IsZeroLine { get; set; }Property Value
| Type | Description | 
|---|---|
| Boolean | true to show the zero line, false otherwise | 
Remarks
The zero line is a line that divides the negative values from the positive values. The default is set according to IsZeroLine, IsZeroLine, IsZeroLine,
Methods
| Improve this Doc View SourceClone()
Typesafe, deep-copy clone method.
Declaration
public MajorGrid Clone()Returns
| Type | Description | 
|---|---|
| MajorGrid | A new, independent copy of this class | 
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
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 |