NDepend.API Documentation
DoInsertGroup Method
NDepend.CodeQuery Namespace > IController Interface : DoInsertGroup Method
The group to insert.
The parent set under which the group is inserted.
The index in oldSetParent children groups, at which groupToInsert is inserted.
Insert groupToInsert under oldSetParent.
Syntax

Parameters

groupToInsert
The group to insert.
oldSetParent
The parent set under which the group is inserted.
index
The index in oldSetParent children groups, at which groupToInsert is inserted.
Exceptions
ExceptionDescription
Can't perform the insertion operation on these arguments.
Please check oldSetParent with the method CanInsertGroupUnder before calling this method.
index must be a positive or zero integer, lower or equals to oldSetParent.IGroupOfGroups.ChildGroupsCount.
Requirements

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

See Also

Reference

IController Interface
IController Members