NDepend.API Documentation
MoveQueryToIndex Method
NDepend.CodeQuery Namespace > IGroup Interface : MoveQueryToIndex Method
The new queryToMove position under this group child queries.
The query to move.
Move queryToMove to the position specified by index.
Syntax
IGroup MoveQueryToIndex( 
   int index,
   IQuery queryToMove
)

Parameters

index
The new queryToMove position under this group child queries.
queryToMove
The query to move.

Return Value

The new group object representing this group.
Exceptions
ExceptionDescription
index must be a positive or zero integer, and index must be strictly lower than this.ChildQueriesCount.
queryToMove must be a child query of this group.
Remarks
Since code query objects are immutable, the old group object have been replaced in the parent hierarchy by the new returned group object.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IGroup Interface
IGroup Members