ArcGIS Pro 2.8 API Reference Guide
BringForward(IEnumerable<Element>) Method

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

Parameters

elements
The elements to bring forward
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. Element z order can only be changed relative to their parent's element collection. All elements must have the same parent. The top element will have a z order of N - 1 where N is equal to the number of elements within the element parent's element collection. Check individual element z order with Element.GetZOrder.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Layout Class
Layout Members
Overload List