Parameters
- element
- The selected element to unselect. Cannot be null
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
LayoutView layoutView = LayoutView.Active; //Unselect one element. var elementToUnSelectInView = layout.FindElements(new List<string>() { "MyPoint" }).FirstOrDefault(); layoutView.UnSelectElement(elementToUnSelect); //Unselect multiple elements. var elementsToUnSelectInView = layout.FindElements(new List<string>() { "Point 1", "Line 3", "Text 1" }); layoutView.UnSelectElements(elementsToUnSelect);
Target Platforms: Windows 11, Windows 10