ArcGIS Pro 2.9 API Reference Guide
BringToFront(IEnumerable<Element>) Method

ArcGIS.Desktop.Layouts Namespace > Layout Class > BringToFront Method : BringToFront(IEnumerable<Element>) Method
The elements to bring to the front
Bring the elements to the front of their parent's element collection. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void BringToFront( 
   IEnumerable<Element> elements
)
Public Overloads Sub BringToFront( _
   ByVal elements As IEnumerable(Of Element) _
) 

Parameters

elements
The elements to bring to the front
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
elements cannot be null or empty
elements must belong to layout 'URI'
element parents must be the same and non-null
Remarks
Refer to CanBringForward(IEnumerable<Element>) to check whether the elements can be brought forward.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

Layout Class
Layout Members
Overload List