ArcGIS Pro 2.7 API Reference Guide
BringForward(Element) Method

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

Parameters

element
The element to bring forward
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Value cannot be null: element
elements must belong to layout 'URI'
Remarks
Refer to CanBringForward(Element) to check whether an element can be brought forward.Element z order can only be changed relative to its parent's element collection. 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 z order with Element.GetZOrder.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Layout Class
Layout Members
Overload List