Gets whether the PointGroup contains a CogoPoint with the given point number.

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

Syntax

C#
public bool ContainsPoint(
	uint pointNumber
)
Visual Basic
Public Function ContainsPoint ( _
	pointNumber As UInteger _
) As Boolean
Visual C++
public:
bool ContainsPoint(
	unsigned int pointNumber
)

Parameters

pointNumber
Type: System..::..UInt32

Examples

CopyC#
 1// Add some points 
 2// 
 3ObjectId pointId1 = _civildoc.CogoPoints.Add(new Point3d(150, 150, 50));
 4ObjectId pointId2 = _civildoc.CogoPoints.Add(new Point3d(250, 250, 250));
 5pointGroup.Update();
 6CogoPoint point1 = pointId1.GetObject(OpenMode.ForRead) as CogoPoint;
 7CogoPoint point2 = pointId2.GetObject(OpenMode.ForRead) as CogoPoint;
 8
 9// pointGroup is an existing PointGroup that includes all points with
10// elevation in the range 0-200.
11// 
12write(String.Format("PointGroup contains point 1: {0}\n",
13    pointGroup.ContainsPoint(point1.PointNumber))); // True
14write(String.Format("PointGroup contains point 2: {0}\n",
15    pointGroup.ContainsPoint(point2.PointNumber))); // False
CopyVB.NET
 1' Add some points 
 2'
 3Dim pointId1 As ObjectId = _civildoc.CogoPoints.Add(New Point3d(150, 150, 50))
 4Dim pointId2 As ObjectId = _civildoc.CogoPoints.Add(New Point3d(250, 250, 250))
 5pointGroup.Update()
 6Dim point1 As CogoPoint = TryCast(pointId1.GetObject(OpenMode.ForRead), CogoPoint)
 7Dim point2 As CogoPoint = TryCast(pointId2.GetObject(OpenMode.ForRead), CogoPoint)
 8
 9' pointGroup is an existing PointGroup that includes all points with
10' elevation in the range 0-200.
11'
12write([String].Format("PointGroup contains point 1: {0}" & vbLf, pointGroup.ContainsPoint(point1.PointNumber)))
13' True
14write([String].Format("PointGroup contains point 2: {0}" & vbLf, pointGroup.ContainsPoint(point2.PointNumber)))
15' False

See Also