|
|
Move the item at oldIndex in oldParent to position newIndex in newParent
where both old and new parents are contained somewhere
inside Value.Tests.
Namespace: Autodesk.Navisworks.Api.Clash
Assembly: Autodesk.Navisworks.Clash (in Autodesk.Navisworks.Clash.dll)
Syntax
| Visual Basic |
|---|
Public Sub TestsMove ( _ oldParent As GroupItem, _ oldIndex As Integer, _ newParent As GroupItem, _ newIndex As Integer _ ) |
| C# |
|---|
public void TestsMove( GroupItem oldParent, int oldIndex, GroupItem newParent, int newIndex ) |
| Visual C++ |
|---|
public: void TestsMove( GroupItem^ oldParent, int oldIndex, GroupItem^ newParent, int newIndex ) |
Parameters
- oldParent
- Type: Autodesk.Navisworks.Api..::..GroupItem
The GroupItem in the document part currently containing the item to move.
- oldIndex
- Type: System..::..Int32
The index at which find the item to move.
- newParent
- Type: Autodesk.Navisworks.Api..::..GroupItem
The GroupItem in the document part to receive the moving item.
- newIndex
- Type: System..::..Int32
The index to which to move the test.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | Moving item is an unsupported type of SavedItem for newParent to receive. |
| System..::..ArgumentOutOfRangeException | One of the indices is out of range for the collection. |