Public Overloads Sub SendBackward( _ ByVal elements As IEnumerable(Of Element) _ )
public void SendBackward( IEnumerable<Element> elements )
Parameters
- elements
- The elements to send backward
Public Overloads Sub SendBackward( _ ByVal elements As IEnumerable(Of Element) _ )
public void SendBackward( 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 cannot be null or empty |
| System.ArgumentException | elements must belong to layout 'URI' |
| System.ArgumentException | element parents must be the same and non-null |
{
//Note: Must be on QueuedTask.Run
//get the current selection set
var sel_elems = layout.GetSelectedElements();
//can they be brought forward? This will also check that all elements have the same parent
if (layout.CanBringForward(sel_elems))
{
//bring forward
layout.BringForward(sel_elems);
//bring to front (of parent)
//graphicsLayer.BringToFront(sel_elems);
}
else if (layout.CanSendBackward(sel_elems))
{
//send back
layout.SendBackward(sel_elems);
//send to the back (of parent)
//graphicsLayer.SendToBack(sel_elems);
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)