Merges the specified region to neighbor region.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.208.0
Syntax
C#
[ObsoleteAttribute("Functionality has been removed.", false)] public bool MergeToNeighborRegion( int index, bool preRegion )
Visual Basic
<ObsoleteAttribute("Functionality has been removed.", False)> _ Public Function MergeToNeighborRegion ( _ index As Integer, _ preRegion As Boolean _ ) As Boolean
Visual C++
public: [ObsoleteAttribute(L"Functionality has been removed.", false)] bool MergeToNeighborRegion( int index, bool preRegion )
Parameters
- index
- Type: System.Int32
AlignmentRegion index. And the corresponding region's offset will be changed.
- preRegion
- Type: System.Boolean
Specify whether merge to previous region or next region.
Remarks
- When preRegion is false and the input region is the last one, the method won't execute but still return true.
- When preRegion is true and the input region is the first one, the method won't execute but still return true.
- You should get a new Count of this collection after executing this method.
Exceptions
Exception | Condition |
---|---|
System.InvalidOperationException | Thrown when the merged region has no previous or next region, such as turn lane's widening region. |