public void AddSymbolLayerDrawing()
Public Sub AddSymbolLayerDrawing()
public void AddSymbolLayerDrawing()
Public Sub AddSymbolLayerDrawing()
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
| System.InvalidOperationException | SLD cannot be added to this layer |
QueuedTask.Run(() =>
{
//check if it can be added to the layer
if (featLayer.CanAddSymbolLayerDrawing())
featLayer.AddSymbolLayerDrawing();
//ditto for a group layer...must have at least
//one child feature layer that can participate
if (groupLayer.CanAddSymbolLayerDrawing())
groupLayer.AddSymbolLayerDrawing();
});
Target Platforms: Windows 11, Windows 10