Removes the CogoPoint with the given pointNumber from the collection.

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

Syntax

C#
public void Remove(
	uint pointNumber
)
Visual Basic
Public Sub Remove ( _
	pointNumber As UInteger _
)
Visual C++
public:
void Remove(
	unsigned int pointNumber
)

Parameters

pointNumber
Type: System..::..UInt32

Remarks

This method does not throw an exception if called with a pointNumber that does not exist in the collection.

Examples

CopyC#
 1// _civildoc is the active CivilDocument instance.
 2CogoPointCollection cogoPoints = _civildoc.CogoPoints;
 3
 4// remove a single point by number:
 5cogoPoints.Remove(pointNumber);
 6
 7// remove a single point by ObjectId:
 8cogoPoints.Remove(pointId2);
 9
10// remove all points:
11cogoPoints.Clear();
CopyVB.NET
 1' _civildoc is the active CivilDocument instance.
 2Dim cogoPoints As CogoPointCollection = _civildoc.CogoPoints
 3
 4' remove a single point by number:
 5cogoPoints.Remove(pointNumber)
 6
 7' remove a single point by ObjectId:
 8cogoPoints.Remove(pointId2)
 9
10' remove all points:

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when the remove operation fails.

See Also