ChartAddLegendItem Method |
Adds a Legend to a ChartNode.
Namespace: Imsl.Chart2DAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public virtual void AddLegendItem(
int type,
ChartNode node
)
Public Overridable Sub AddLegendItem (
type As Integer,
node As ChartNode
)
public:
virtual void AddLegendItem(
int type,
ChartNode^ node
)
abstract AddLegendItem :
type : int *
node : ChartNode -> unit
override AddLegendItem :
type : int *
node : ChartNode -> unit
Parameters
- type
- Type: SystemInt32
An int which specifies the LegendItem type.
- node
- Type: Imsl.Chart2DChartNode
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
See Also