|
![]() |
Moves item at oldIndex in OldParent to newIndex in newParent
Namespace: Autodesk.Navisworks.Api.DocumentParts
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
Visual Basic |
---|
Public Sub Move ( _ oldParent As GroupItem, _ oldIndex As Integer, _ newParent As GroupItem, _ newIndex As Integer _ ) |
C# |
---|
public void Move( GroupItem oldParent, int oldIndex, GroupItem newParent, int newIndex ) |
Visual C++ |
---|
public: void Move( GroupItem^ oldParent, int oldIndex, GroupItem^ newParent, int newIndex ) |
Parameters
- oldParent
- Type: Autodesk.Navisworks.Api..::..GroupItem
The parent group to move the item from. RootItem or null to remove directly from Value
- oldIndex
- Type: System..::..Int32
- newParent
- Type: Autodesk.Navisworks.Api..::..GroupItem
The parent group to move to. RootItem or null to move directly into Value. If newParent is equal to oldParent, the item will be moved within the same SavedItemCollection.
- newIndex
- Type: System..::..Int32
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | Argument 'oldParent' has been Disposed |
System..::..ArgumentException | Argument 'oldParent' is not contained by Selectionsets |
System..::..ArgumentException | Argument 'newParent' has been Disposed |
System..::..ArgumentException | Argument 'newParent' is not contained by Selectionsets |
System..::..ArgumentOutOfRangeException | Argument 'oldIndex' out of range |
System..::..ArgumentOutOfRangeException | Argument 'newIndex' out of range |