Adds a copy of the specified Point to the end of the set of existing Points in the Multipoint.

Namespace:  ESRI.ArcGISExplorer.Geometry

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public void AddPoint(
	Point pt
)
Visual Basic (Declaration)
Public Sub AddPoint ( _
	pt As Point _
)

Parameters

pt
Type: ESRI.ArcGISExplorer.Geometry..::.Point

A new Point to be copied in to the Multipoint.

Examples

The code below creates a new Multipoint with a specific CoordinateSystem, and then uses the AddPoint method to populate the Multipoint with individual Points. Instances of the Point class are fully-qualified to avoid namespace clashes with System.Drawing.Point.
CopyC#
// Create a new Multipoint using a specific CoordinateSystem, and add vertices one-by-one.
Multipoint mpt = new Multipoint(CoordinateSystem.ProjectedCoordinateSystems.NationalGrids.Europe.BritishNationalGrid);
mpt.AddPoint(new ESRI.ArcGISExplorer.Geometry.Point(216640, 771340));
mpt.AddPoint(new ESRI.ArcGISExplorer.Geometry.Point(215940, 771940));
mpt.AddPoint(new ESRI.ArcGISExplorer.Geometry.Point(215540, 770140));
CopyVB.NET
' Create a new Multipoint using a specific CoordinateSystem, and add vertices one-by-one.
Dim mpt As Multipoint = New Multipoint(CoordinateSystem.ProjectedCoordinateSystems.NationalGrids.Europe.BritishNationalGrid)
mpt.AddPoint(New ESRI.ArcGISExplorer.Geometry.Point(216640, 771340))
mpt.AddPoint(New ESRI.ArcGISExplorer.Geometry.Point(215940, 771940))
mpt.AddPoint(New ESRI.ArcGISExplorer.Geometry.Point(215540, 770140))

See Also