Method Move
Move(CadSheetComponent, CadSheetSubset, int)
Moves a sheet or a subset to another place in the set: another place in its own group, or another group.
public void Move(CadSheetComponent component, CadSheetSubset newParent, int index)
Parameters
componentCadSheetComponentThe part to move; it is inside this group or one inside it.
newParentCadSheetSubsetThe group it goes to.
indexintIts place among the subsets and sheets of the new group once it has left its old place; -1 for the end.
Exceptions
- ArgumentNullException
Thrown when the part or the group is null.
- ArgumentException
Thrown when either is not of this file as it is loaded, or the group is the part itself or inside it.
- ArgumentOutOfRangeException
Thrown when the place is not -1 or from 0 to the count of the group's other children.
- InvalidOperationException
Thrown outside Change(Action<CadSheetSet>).