NDepend.API Documentation
MoveGroupToIndex Method
NDepend.CodeQuery Namespace > IGroupOfGroups Interface : MoveGroupToIndex Method
The new groupToMove position under this group of groups child groups.
The group to move.
Move groupToMove to the position specified by index.
Syntax
IGroupOfGroups MoveGroupToIndex( 
   int index,
   IGroup groupToMove
)

Parameters

index
The new groupToMove position under this group of groups child groups.
groupToMove
The group to move.

Return Value

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

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

See Also

Reference

IGroupOfGroups Interface
IGroupOfGroups Members