Hello,
I am working with ArcGIS Pro SDK to build a configuration. I currently have a checkbox control on my ribbon. When I check the box, my labels turn on for the feature class I specify. I was able to figure this out using this code snippet from the Pro SDK GitHub.
Is there a way that I could set the label expression programatically, instead of having to select the layer from my Contents pane and changing it manually under the labeling ribbon tab?
I've tried using AddLabelClass() on my feature layer but it doesn't produce the result I want if I put my field name in the parameter.
Thank you!