void SetTOCPositionRelative( IElement targetElement, bool isAbove )
Sub SetTOCPositionRelative( _ ByVal targetElement As IElement, _ ByVal isAbove As Boolean _ )
void SetTOCPositionRelative( IElement targetElement, bool isAbove )
Sub SetTOCPositionRelative( _ ByVal targetElement As IElement, _ ByVal isAbove As Boolean _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method must be called within the lambda passed to QueuedTask.Run. |
true
, the element is placed above the reference element. The reference element can either be at the root level of the layout TOC or an element in a group element. Elements can be easily moved into or out of groups.//Move a layout element above an existing layout element. //Perform on the worker thread await QueuedTask.Run(() => { element.SetTOCPositionRelative(element, true); });
Target Platforms: Windows 11, Windows 10