public void UnSelectElements( IEnumerable<Element> elements )
Public Sub UnSelectElements( _ Optional ByVal elements As IEnumerable(Of Element) _ )
Parameters
- elements
- The selected elements to unselect. If null then all elements are unselected
public void UnSelectElements( IEnumerable<Element> elements )
Public Sub UnSelectElements( _ Optional ByVal elements As IEnumerable(Of Element) _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
System.ArgumentException | elements must belong to layout 'URI' |
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