Removes an AlignmentRegion from the collection, which in turn removes the region from the Offset Alignment.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
public void Remove(
	int index
)
Visual Basic
Public Sub Remove ( _
	index As Integer _
)
Visual C++
public:
void Remove(
	int index
)

Parameters

index
Type: System..::..Int32
AlignmentRegion index.

Remarks

  1. Removing an AlignmentRegion merges it with the previous region and eliminates any transition between them.
  2. Removing an AlignmentRegion may invalidate references to AlignmentTransition objects. Therefore, any references to an AlignmentTransition should not be used.
  3. Removing an AlignmentRegion may invalidate references to other AlignmentRegion objects in the same collection; therefore, any references held to an AlignmentRegion should not be used.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeException Thrown when index is out of collection range.
System..::..InvalidOperationException Thrown when there is only one region in the collection.

See Also