Public Sub DeleteElements( _ ByVal elements As IEnumerable(Of Element) _ )
public void DeleteElements( IEnumerable<Element> elements )
Parameters
- elements
- The set of elements to be deleted.
Public Sub DeleteElements( _ ByVal elements As IEnumerable(Of Element) _ )
public void DeleteElements( IEnumerable<Element> elements )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
| System.ArgumentNullException | The value cannot be null: elements |
{
//Note: Needs QueuedTask to run
var reportElementsToFind = new List<string> { "ReportText1", "ReportText2" };
var textReportElements = report.FindElements(reportElementsToFind);
report.DeleteElements(textReportElements);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)