Adds a Legend to a ChartNode.
Namespace:
Imsl.Chart2D
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public virtual void AddLegendItem( int type, ChartNode node ) |
Visual Basic (Declaration) |
---|
Public Overridable Sub AddLegendItem ( _ type As Integer, _ node As ChartNode _ ) |
Visual C++ |
---|
public: virtual void AddLegendItem( int type, ChartNode^ node ) |
Parameters
- type
- Type: System..::.Int32
An int which specifies the LegendItem type.
- node
- Type: Imsl.Chart2D..::.ChartNode
A ChartNode to which a Legend is to be added.
Remarks
This method is intended to be called from within the Paint method of classes which explicitly paint their own child chart nodes. The child chart nodes to be included in the legend must be added to the legend during each call to Paint of the parent chart node.
Typical users of the chart library do not need to call this routine. This method is for use by those writing new charting classes.
The possible legend types are:
- DATA_TYPE_NONE
- DATA_TYPE_LINE
- DATA_TYPE_MARKER
- DATA_TYPE_FILL