ZedGraph LogoZedGraph Class Library Documentation
GraphPane Class
NamespacesZedGraphGraphPane
Class GraphPane encapsulates the graph pane, which is all display elements associated with an individual graph.
Declaration Syntax
C#Visual BasicVisual C++
<SerializableAttribute> _
Public Class GraphPane _
	Inherits PaneBase _
	Implements ICloneable, ISerializable
[SerializableAttribute]
public ref class GraphPane : public PaneBase, 
	ICloneable, ISerializable
Members
All MembersConstructorsMethodsPropertiesFieldsEvents



IconMemberDescription
GraphPaneGraphPaneNew()()
Default Constructor. Sets the Rect to (0, 0, 500, 375), and sets the Title and Title values to empty strings.

GraphPaneGraphPaneNew(RectangleF, String, String, String)
Constructor for the GraphPane object. This routine will initialize all member variables and classes, setting appropriate default values as defined in the GraphPane..::Default class.

GraphPaneGraphPaneNew(GraphPane)
The Copy Constructor

AddBar(String, IPointList, Color)
Add a bar type curve (CurveItem object) to the plot with the given data points (IPointList) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddBar(String, array<Double>[](), array<Double>[](), Color)
Add a bar type curve (CurveItem object) to the plot with the given data points (double arrays) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddCurve(String, array<Double>[](), array<Double>[](), Color)
Add a curve (CurveItem object) to the plot with the given data points (double arrays) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddCurve(String, IPointList, Color)
Add a curve (CurveItem object) to the plot with the given data points (IPointList) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddCurve(String, array<Double>[](), array<Double>[](), Color, SymbolType)
Add a curve (CurveItem object) to the plot with the given data points (double arrays) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddCurve(String, IPointList, Color, SymbolType)
Add a curve (CurveItem object) to the plot with the given data points (IPointList) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddErrorBar(String, array<Double>[](), array<Double>[](), array<Double>[](), Color)
Add an error bar set (ErrorBarItem object) to the plot with the given data points (IPointList) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddErrorBar(String, IPointList, Color)
Add an error bar set (ErrorBarItem object) to the plot with the given data points (IPointList) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddHiLowBar(String, array<Double>[](), array<Double>[](), array<Double>[](), Color)
Add a "High-Low" bar type curve (HiLowBarItem object) to the plot with the given data points (double arrays) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddHiLowBar(String, IPointList, Color)
Add a hi-low bar type curve (CurveItem object) to the plot with the given data points (IPointList) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddJapaneseCandleStick(String, IPointList)
Add a japanesecandlestick graph (JapaneseCandleStickItem object) to the plot with the given data points (IPointList) and properties.

AddOHLCBar(String, IPointList, Color)
Add a candlestick graph (OHLCBarItem object) to the plot with the given data points (IPointList) and properties.

AddPieSlice(Double, Color, Double, String)
Add a PieItem to the display.

AddPieSlice(Double, Color, Color, Single, Double, String)
Add a PieItem to the display, providing a gradient fill for the pie color.

AddPieSlices(array<Double>[](), array<String>[]())
Creates all the PieItems for a single Pie Chart.

AddStick(String, array<Double>[](), array<Double>[](), Color)
Add a stick graph (StickItem object) to the plot with the given data points (double arrays) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddStick(String, IPointList, Color)
Add a stick graph (StickItem object) to the plot with the given data points (IPointList) and properties. This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method.

AddY2Axis(String)
Add a secondary Y2Axis (right side) to the list of axes in the Graph.

AddYAxis(String)
Add a secondary YAxis (left side) to the list of axes in the Graph.

AxisChange()()
AxisChange causes the axes scale ranges to be recalculated based on the current data range.

AxisChange(Graphics)
AxisChange causes the axes scale ranges to be recalculated based on the current data range.

AxisChangeEvent
Subscribe to this event to be notified when AxisChange()() is called.

BarSettings
Gets the BarSettings instance for this GraphPane, which stores the global properties for bar type charts.

BaseDimension
BaseDimension is a double precision value that sets "normal" pane size on which all the settings are based. The BaseDimension is in inches. For example, if the BaseDimension is 8.0 inches and the Title size is 14 points. Then the pane title font will be 14 points high when the Rect is approximately 8.0 inches wide. If the Rect is 4.0 inches wide, the pane title font will be 7 points high. Most features of the graph are scaled in this manner.
(Inherited from PaneBase.)
Border
Gets or sets the Border class for drawing the border border around the Rect
(Inherited from PaneBase.)
CalcChartRect(Graphics)
Calculate the Rect based on the Rect.

CalcChartRect(Graphics, Single)
Calculate the Rect based on the Rect.

CalcClientRect(Graphics, Single)
Calculate the client area rectangle based on the Rect.
(Inherited from PaneBase.)
CalcScaleFactor()()
Calculate the scaling factor based on the ratio of the current Rect dimensions and the BaseDimension.
(Inherited from PaneBase.)
Chart
Gets the Chart instance for this GraphPane.

Clone()()
Typesafe, deep-copy clone method.

CurveList
Gets or sets the list of CurveItem items for this GraphPane

Draw(Graphics)
Draw all elements in the GraphPane to the specified graphics device.
(Overrides PaneBase.Draw(Graphics).)
DrawPaneFrame(Graphics, Single)
Draw the border _border around the Rect area.
(Inherited from PaneBase.)
DrawTitle(Graphics, Single)
Draw the Title on the graph, centered at the top of the pane.
(Inherited from PaneBase.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Fill
Gets or sets the Fill data for the filling the background of the Rect.
(Inherited from PaneBase.)
Finalize()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FindContainedObjects(RectangleF, Graphics, CurveList%)
Find any objects that exist within the specified (screen) rectangle. This method will search through all of the graph objects, such as Axis, Legend, Title, GraphObj, and CurveItem. and see if the objects' bounding boxes are within the specified (screen) rectangle This method returns true if any are found.

FindLinkableObject(PointF, Graphics, Single, Object%, Link%, Int32%)
Search through the GraphObjList and CurveList for items that contain active Link objects.

FindNearestObject(PointF, Graphics, Object%, Int32%)
Find the object that lies closest to the specified mouse (screen) point.

FindNearestPoint(PointF, CurveItem, CurveItem%, Int32%)
Find the data point that lies closest to the specified mouse (screen) point for the specified curve.

FindNearestPoint(PointF, CurveItem%, Int32%)
Find the data point that lies closest to the specified mouse (screen) point.

FindNearestPoint(PointF, CurveList, CurveItem%, Int32%)
Find the data point that lies closest to the specified mouse (screen) point.

GeneralTransform(PointF, CoordType)
Transform a data point from the specified coordinate type (CoordType) to screen coordinates (pixels).

GeneralTransform(Double, Double, CoordType)
Transform a data point from the specified coordinate type (CoordType) to screen coordinates (pixels).

GetHashCode()()
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetImage()()
Build a Bitmap object containing the graphical rendering of all the GraphPane objects in this list.
(Inherited from PaneBase.)
GetImage(Int32, Int32, Single)
Gets an image for the current GraphPane, scaled to the specified size and resolution.
(Inherited from PaneBase.)
GetMetafile(Int32, Int32)
Gets an enhanced metafile image for the current GraphPane, scaled to the specified size.
(Inherited from PaneBase.)
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo instance with the data needed to serialize the target object
(Overrides PaneBase.GetObjectData(SerializationInfo, StreamingContext).)
GetType()()
Gets the Type of the current instance.
(Inherited from Object.)
GraphObjList
Gets or sets the list of GraphObj items for this GraphPane
(Inherited from PaneBase.)
IsAlignGrids
Gets or sets a value that determines if ZedGraph should modify the scale ranges for the Y and Y2 axes such that the number of major steps, and therefore the major grid lines, line up.

IsBoundedRanges
Gets or sets a boolean value that determines if the auto-scaled axis ranges will subset the data points based on any manually set scale range values.

IsFontsScaled
Determines if the font sizes, tic sizes, gap sizes, etc. will be scaled according to the size of the Rect and the BaseDimension. If this value is set to false, then the font sizes and tic sizes will always be exactly as specified, without any scaling.
(Inherited from PaneBase.)
IsIgnoreInitial
Gets or sets a boolean value that affects the data range that is considered for the automatic scale ranging.

IsIgnoreMissing
Gets or sets a value that determines whether or not initial Missing values will cause the line segments of a curve to be discontinuous.

IsPenWidthScaled
Gets or sets the property that controls whether or not pen widths are scaled for this PaneBase.
(Inherited from PaneBase.)
IsZoomed
Gets a value that indicates whether or not the ZoomStateStack for this GraphPane is empty. Note that this value is only used for the ZedGraphControl.

Legend
Accesses the Legend for this PaneBase
(Inherited from PaneBase.)
LineType
Determines how the LineItem graphs will be displayed. See the LineType enum for the individual types available.

Margin
Gets or sets the Margin instance that controls the space between the edge of the Rect and the rendered content of the graph.
(Inherited from PaneBase.)
MemberwiseClone()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Rect
The rectangle that defines the full area into which all graphics will be rendered.
(Inherited from PaneBase.)
ReSize(Graphics, RectangleF)
Change the size of the Rect. Override this method to handle resizing the contents as required.
(Inherited from PaneBase.)
ReverseTransform(PointF, Double%, Double%)
Return the user scale values that correspond to the specified screen coordinate position (pixels). This overload assumes the default XAxis and YAxis.

ReverseTransform(PointF, Double%, Double%, Double%, Double%)
Return the user scale values that correspond to the specified screen coordinate position (pixels).

ReverseTransform(PointF, Boolean, Boolean, Int32, Double%, Double%)
Return the user scale values that correspond to the specified screen coordinate position (pixels).

ReverseTransform(PointF, Double%, Double%, array<Double>[]()%, array<Double>[]()%)
Return the user scale values that correspond to the specified screen coordinate position (pixels) for all y axes.

ScaledPenWidth(Single, Single)
Calculate the scaled pen width, taking into account the scaleFactor and the setting of the IsPenWidthScaled property of the pane.
(Inherited from PaneBase.)
static memberschema2
Current schema value that defines the version of the serialized file

SetMinSpaceBuffer(Graphics, Single, Boolean)
This method will set the MinSpace property for all three axes; XAxis, YAxis, and Y2Axis.

ShallowClone()()
Create a shallow, memberwise copy of this class.
(Inherited from PaneBase.)
ICloneable..::Clone()()
Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone()()

Tag
Gets or sets the user-defined tag for this PaneBase. This tag can be any user-defined value. If it is a String type, it can be used as a parameter to the IndexOfTag(String) method.
(Inherited from PaneBase.)
Title
Gets the Label instance that contains the text and attributes of the title. This text can be multiple lines separated by newline characters ('\n').
(Inherited from PaneBase.)
TitleGap
Gets or sets the gap between the bottom of the pane title and the client area of the pane. This is expressed as a fraction of the scaled Title character height.
(Inherited from PaneBase.)
ToString()()
Returns a String that represents the current Object.
(Inherited from Object.)
X2Axis
Accesses the X2Axis for this graph

XAxis
Accesses the XAxis for this graph

Y2Axis
Accesses the primary Y2Axis for this graph

Y2AxisList
Gets the collection of Y2 axes that belong to this GraphPane.

YAxis
Accesses the primary YAxis for this graph

YAxisList
Gets the collection of Y axes that belong to this GraphPane.

ZoomStack
Gets a reference to the ZoomStateStack for this GraphPane.

Remarks
This class is the outside "wrapper" for the ZedGraph classes, and provides the interface to access the attributes of the graph. You can have multiple graphs in the same document or form, just instantiate multiple GraphPane's.
Inheritance Hierarchy
Object
PaneBase
 GraphPane

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621