Table of Contents

Method Move

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

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

component CadSheetComponent

The part to move; it is inside this group or one inside it.

newParent CadSheetSubset

The group it goes to.

index int

Its 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>).