CBCGPChartLegendCtrl* CBCGPChartView::EnableAdvancedLegend | ( | BOOL | bEnable = TRUE , |
BCGPChartLayout::LegendPosition | position = BCGPChartLayout::LP_RIGHT , |
||
BOOL | bIsVerticalLayout = TRUE , |
||
CBCGPChartLegendVisualObject::LegendAlignment | horzAlign = CBCGPChartLegendVisualObject::LA_CENTER , |
||
CBCGPChartLegendVisualObject::LegendAlignment | vertAlign = CBCGPChartLegendVisualObject::LA_CENTER , |
||
CRuntimeClass * | pLegendRTC = NULL , |
||
BOOL | bPrint = FALSE |
||
) |
Displays an advanced legend that is automatically connected to hosted chart
Call this method to display an advanced legend within chart view. It's implemented as a separate control that is automatically connected to chart and repositioned by view according to "position", "horzAlign" and "vertAlign" parameters.
position can be one of the following enumerated values:
horzAlign and vertAlign can be one of the following values:
bEnable | shows or hides advanced legend |
position | specifies legend position relative to chart |
bIsVerticalLayout | specifies whether the legend has vertical or horizontal layout |
horzAlign | specifies horizontal alignment of legend |
vertAlign | specifies vertical alignment of legend |
pLegendRTC | a pointer to a runtime class information of custom legend |
bPrint | specifies whether advanced legend should be printed |