AnsweredAssumed Answered

How to edit symbol labels of a feature layer?

Question asked by luke.coursey on Apr 7, 2016
Latest reply on Apr 8, 2016 by luke.coursey

I'm looking for a way to programmatically edit the symbol labels of my feature layer (the labels that appear in the table of contents / legend):

 

 

For example, let's say I'm assigning a simple unique value renderer to my layer based on a single field:

 

var fields = new[] {"RENDITION"};
var rendererDef = new UniqueValueRendererDefinition(fields);
var renderer = layer.CreateRenderer(rendererDef);
layer.SetRenderer(renderer);

 

 

Is there a way I can then define the labels for these unique symbols?

Outcomes