Download QCChart2D User Manual - Quinn

Transcript
358 Legends
);
LegendItem legenditem
public int AddLegendItem(
string stext,
int nsymbol,
GraphObj chartobj,
Font thefont
);
public int AddLegendItem(
string stext,
GraphicsPath symbolshape,
GraphObj chartobj,
Font thefont
);
public int AddLegendItem(
string stext,
int nsymbol,
ChartPlot chartobj,
int ngroup,
Font thefont
);
stext
Specifies the text string for the legend item.
nsymbol
Specifies the symbol for the legend item. Use one of the chart
symbol constants: NOSYMBOL, SQUARE, TRIANGLE,
DIAMOND, CROSS, PLUS, STAR, LINE, HBAR, VBAR, or
CIRCLE.
chartobj
The color and fill attributes for the legend item are copied from the
attributes of this ChartPlot object.
symbolshape
Specifies a user defined shape to use as the legend item symbol.
attrib
Specifies the ChartAttribute object to get the color and fill
attributes of the legend item.
thefont
Specifies the text font for the legend item.
The AddLegendItem returns the current number of legend items.
Simple legend example (extracted from the example program PolarCharts, class
PolarLineFillAndScatterChart)
[C#]
.
.
.