public void SelectElements( IReadOnlyList<Element> elements )
Public Sub SelectElements( _ ByVal elements As IReadOnlyList(Of Element) _ )
Parameters
- elements
- A list of existing layout elements.
public void SelectElements( IReadOnlyList<Element> elements )
Public Sub SelectElements( _ ByVal elements 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 layout 'URI' |
//Set the layout's element selection. Element rec = layoutView.Layout.FindElement("Rectangle"); Element rec2 = layoutView.Layout.FindElement("Rectangle 2"); List<Element> elmList = new List<Element>(); elmList.Add(rec); elmList.Add(rec2); layoutView.SelectElements(elmList);
Target Platforms: Windows 10, Windows 8.1