Public Sub UnSelectElements( _ Optional ByVal elements As IEnumerable(Of Element) _ )
public void UnSelectElements( IEnumerable<Element> elements )
Parameters
- elements
- The selected elements to unselect. If null then all elements are unselected
Public Sub UnSelectElements( _ Optional ByVal elements As IEnumerable(Of Element) _ )
public void UnSelectElements( IEnumerable<Element> elements )
| 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' |
{
//Unselect one element.
var elementToUnSelectInView = layout.FindElements(new List<string>() { "MyPoint" }).FirstOrDefault();
layoutView.UnSelectElement(elementToUnSelectInView);
//Unselect multiple elements.
var elementsToUnSelectInView = layout.FindElements(new List<string>() { "Point 1", "Line 3", "Text 1" });
layoutView.UnSelectElements(elementsToUnSelectInView);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)