Set 'Legend Every' in Palette
Posted: Thu May 06, 2010 4:33 pm
Hi,
I could not find the way how to programmatically set Legend Every in Palette. Of course, I was able to change this number in Chart Editor.
Please see the following code.
void TChartConfig::SetPolygonColor(IMapSeriesPtr tMapSeries)
{
// Set up Palette Steps
tMapSeries->UsePaletteMin = TRUE;
tMapSeries->PaletteSteps = 101;
tMapSeries->PaletteMin = 0;
tMapSeries->PaletteStep = 0.5;
// tMapSeries->LegendEvery = 10; <-----------------------this doesn't work! how can I do this?
// Set up Palette Colors
tMapSeries->UseColorRange = FALSE;
tMapSeries->UsePalette = TRUE;
tMapSeries->PaletteStyle = psPale;
tMapSeries->InvertPalette();
tMapSeries->Pen->Visible = FALSE;
}
I could not find the way how to programmatically set Legend Every in Palette. Of course, I was able to change this number in Chart Editor.
Please see the following code.
void TChartConfig::SetPolygonColor(IMapSeriesPtr tMapSeries)
{
// Set up Palette Steps
tMapSeries->UsePaletteMin = TRUE;
tMapSeries->PaletteSteps = 101;
tMapSeries->PaletteMin = 0;
tMapSeries->PaletteStep = 0.5;
// tMapSeries->LegendEvery = 10; <-----------------------this doesn't work! how can I do this?
// Set up Palette Colors
tMapSeries->UseColorRange = FALSE;
tMapSeries->UsePalette = TRUE;
tMapSeries->PaletteStyle = psPale;
tMapSeries->InvertPalette();
tMapSeries->Pen->Visible = FALSE;
}