CWGraph
The CWGraph object is the top-level object in the graph control and it has properties that affect the overall appearance of the control.
Properties
Annotations | Specifies a collection of CWAnnotation objects. |
AnnotationTemplate | Returns the CWAnnotation object to use as a template for new annotations. |
Axes | Specifies a collection of CWAxis objects. |
BackColor | Specifies the background color for the graph caption. |
Caption | Specifies the caption that appears on the graph. |
CaptionColor | Specifies the color of the caption. |
ChartLength | Specifies how many points the graph stores when charting before it deletes old data. |
ChartStyle | Specifies how chart methods update the display as new data is added to the plot. |
Cursors | Specifies a collection of CWCursor objects. |
CWBindings | Returns a collection of CWBinding objects. |
DefaultPlotPerRow | Specifies the default value used by the Plot or Chart method if the optional bPlotPerRow or bChartPerRow parameter is omitted. |
DefaultxFirst | Specifies the default X value of the first point in the plot when using the PlotY method. Set this property only if the optional xFirst parameter is omitted for the PlotY method. |
DefaultxInc | Specifies the default value for incrementing when using the PlotY or ChartY method. Set this property only if the optional xInc parameter is omitted for either method. |
Enabled | Specifies if the graph generates any events. |
Font | Specifies the font for labels on all axes. |
GraphFrameColor | Specifies the color for the graph frame. |
GraphFrameImage | Specifies the image for the background of the graph frame. |
GraphFrameStyle | Specifies the style of the graph frame. |
ImmediateUpdates | Specifies if the graph draws new data as soon as it is available, or if the form refreshes the graph when it draws other controls. |
KeyboardMode | Specifies how the control handles keyboard input from the user. |
PlotAreaColor | Specifies the background color of the plot area. |
PlotAreaImage | Specifies the image used for the background of the plot area. |
Plots | Specifies a collection of CWPlots. |
PlotTemplate | Returns the CWPlot object to use as a template for new plots. |
ReadyState | Returns the ready state. |
TrackMode | Determines how the mouse interacts with the graph. |
Windowless | Specifies if the control has a window. |
XYData | Displays data from an external source in a plot on a graph as it would if you called the PlotXY method. |
XYDataAppend | Displays data from an external source in a chart as it would if you called the ChartXY method. |
YData | Displays data from an external source in a plot on a graph as it would if you called the PlotY method. |
YDataAppend | Displays data from an external source in a chart as it would if you called the ChartY method. |
Methods
AboutBox | Displays the About Box for the control. |
ChartXvsY | Charts a one- or two-dimensional array of Y data against a one-dimensional array of X data. This method is similar to the PlotYvsX method, except that the previously plotted data is not deleted until the amount stored for each chart is greater than the CWGraph.ChartLength property specifies. |
ChartXY | Charts a two-dimensional array of data. This method is similar to the PlotXY method, except that the previously plotted data is not deleted until the amount stored for each chart is greater than the CWGraph.ChartLength property specifies. |
ChartY | Charts Y data on one or more plots relative to the index of the data. |
ClearData | Clears data in all plots. |
ControlImage | Returns an image of the entire control. |
ExportStyle | Exports the style of the Measurement Studio control to a file. |
Images | Provides access to the CWImage objects in the CWGraph control. |
ImportStyle | Imports a previously exported style. |
PlotXvsY | Plots a 1D or 2D array of Y data against a 1D array of X data. Each row of Y values generates one plot.
|
PlotXY | Plots a 2D array of data. The first row is X values, and subsequent rows are Y values for each plot. |
PlotY | Plots Y data evenly spaced on the x axis relative to the index in the array. Alternatively, you can use the xFirst and xInc parameters to specify the X value at the first data point and the incremental X value between data points. |
Refresh | Redraws the CWGraph control. |
Events
AnnotationChange | Generates when you reposition an annotation with the mouse. |
AnnotationMouseDown, AnnotationMouseMove, AnnotationMouseUp | AnnotationMouseDown is generated when you click the mouse on an annotation. AnnotationMouseMove is generated when you move the mouse over an annotation. AnnotationMouseUp is generated when you release the mouse over an annotation. |
Click | Generates when you click the mouse on the control. |
CursorChange | Generated when you reposition a cursor with the mouse. |
CursorMouseDown, CursorMouseMove, CursorMouseUp | CursorMouseDown is generated when you click the mouse on a cursor. CursorMouseMove is generated when you move the mouse over a cursor. CursorMouseUp is generated when you release the mouse over a cursor. |
CWBindingDataUpdated | Generated when the binding data is updated. |
CWBindingStatusUpdated | Generated when the status of the binding connection changes. |
DblClick | Generates when you double-click the mouse on the control. |
KeyDown, KeyUp | KeyUp generates when you release a key while the control has the input focus.
KeyDown generates when you press a key while the control has the input focus. |
KeyPress | Generated when the control has focus and you press a key. |
MouseDown, MouseMove, MouseUp | MouseDown generates when you click the mouse on the control. MouseMove generates when you move the mouse over the control. MouseUp generates when you release the mouse on the control. |
PlotAreaMouseDown, PlotAreaMouseMove, PlotAreaMouseUp | PlotAreaMouseDown generates when you click the mouse on the plot area. PlotAreaMouseMove generates when you move the mouse over the plot area. PlotAreaMouseUp generates when you release the mouse over the plot area. |
PlotMouseDown, PlotMouseMove, PlotMouseUp | PlotMouseDown generates when you click the mouse on a plot. PlotMouseMove generates when you move the mouse over a plot. PlotMouseUp generates when you release the mouse over a plot. |
ReadyStateChange | Generated when the ready state changes. |