public IReadOnlyList<Element> CopyElements( IEnumerable<Element> elements )
Public Overloads Function CopyElements( _ ByVal elements As IEnumerable(Of Element) _ ) As IReadOnlyList(Of Element)
Parameters
- elements
- The elements to be copied
public IReadOnlyList<Element> CopyElements( IEnumerable<Element> elements )
Public Overloads Function CopyElements( _ ByVal elements As IEnumerable(Of Element) _ ) As IReadOnlyList(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 a layout |
System.ArgumentException | elements must belong to layout 'URI' |
//on the QueuedTask var elems = layout.FindElements(new List<string>() { "Point 1", "Line 3", "Text 1" }); var copiedElements = layout.CopyElements(elems);
Target Platforms: Windows 11, Windows 10, Windows 8.1