I'm creating an add-in button that will allow the user to create a cloropleth map from a layer they choose. I create a classBreaksRenderer, then I can set it's colorRamp, for example:
myRenderer.setColorRamp("White to Black"); but this only changes the color ramp in the properties dialog, and does not change the actual map. I can change the actual map using the .setSymbol method, for example: myRenderer.setSymbol(0, myIsymbol1);
Why doesn't the .setColorRamp method change the symbols and the map layer, as it does when you click on the colorramp and change it in the property dialog in ArcMap? Is there any way to do the same thing programatically?
Also, myRenderer.setColorRamp(); seems to fail if you use a multi-part color ramp. Why? Is this a bug?