Merges the specified region to neighbor region.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.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++
[ObsoleteAttribute(L"Functionality has been removed.", false)]
public:
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

  1. When preRegion is false and the input region is the last one, the method won't execute but still return true.
  2. When preRegion is true and the input region is the first one, the method won't execute but still return true.
  3. You should get a new Count of this collection after executing this method.

Exceptions

ExceptionCondition
System..::..InvalidOperationException Thrown when the merged region has no previous or next region, such as turn lane's widening region.

See Also