Removes an AlignmentRegion from the collection, which in turn removes the region from the Offset Alignment.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.208.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
- Removing an AlignmentRegion merges it with the previous region and eliminates any transition between them.
- Removing an AlignmentRegion may invalidate references to AlignmentTransition objects. Therefore, any references to an AlignmentTransition should not be used.
- 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
| Exception | Condition |
|---|---|
| System.ArgumentOutOfRangeException | Thrown when index is out of collection range. |
| System.InvalidOperationException | Thrown when there is only one region in the collection. |