Using the Pro SDK 2.9, I'm trying to update the style of the selected features in a layer.
This example shows how to change the color of selected features - arcgis-pro-sdk-community-samples .Similarly, when I try to update the selection symbology of a line layer, the code does not work.
Below is the snippet of what I'm trying:
//layer is a FeatureLayer
var layerDef = layer.GetDefinition() as CIMBasicFeatureLayer;
layerDef.UseSelectionSymbol = true;
//layerDef.SelectionColor = ColorFactory.Instance.RedRGB;
layerDef.SelectionSymbol = new CIMSymbolReference()
{
Symbol = SymbolFactory.Instance.ConstructLineSymbol(
CIMColor.CreateRGBColor(255, 0, 0), 5, SimpleLineStyle.Dot),
SymbolName = "Dotted red line",
};
layer.SetDefinition(layerDef);
Am I missing anything?
Hi,
There is no possibility to change symbol from ArcGIS Pro.
So, I think, these properties (UseSelectionSymbol, SelectionSymbol) are reserved for future implementation.