Parameters
- element
- Element
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method must be called within the lambda passed to QueuedTask.Run. |
//Delete a single layout element. //Perform on the worker thread await QueuedTask.Run(() => { layout.DeleteElement(elm); });
//Delete an element or elements on a layout. //Perform on the worker thread QueuedTask.Run(() => { //Delete a specific element on a layout aLayout.DeleteElement(elm); //Or delete a group of elements using a filter aLayout.DeleteElements(item => item.Name.Contains("Clone")); //Or delete all elements on a layout aLayout.DeleteElements(item => true); });
Target Platforms: Windows 11, Windows 10, Windows 8.1