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.
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class Chart : ICloneable, ISerializable
Constructors
| Improve this Doc View SourceChart()
Default constructor.
Declaration
public Chart()
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 |
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 Sourceschema
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 SourceBorder
Declaration
public Border Border { get; set; }
Property Value
Type | Description |
---|---|
Border |
See Also
| Improve this Doc View SourceFill
Declaration
public Fill Fill { get; set; }
Property Value
Type | Description |
---|---|
Fill |
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.
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 SourceClone()
Typesafe, deep-copy clone method.
Declaration
public Chart Clone()
Returns
Type | Description |
---|---|
Chart | 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 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 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 |