Initializes a new instance of the Multipoint class, adding the specified Points and applying the specified CoordinateSystem.

Namespace:  ESRI.ArcGISExplorer.Geometry

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

Syntax

C#
public Multipoint(
	IEnumerable<Point> points,
	CoordinateSystem coordinateSystem
)
Visual Basic (Declaration)
Public Sub New ( _
	points As IEnumerable(Of Point), _
	coordinateSystem As CoordinateSystem _
)

Parameters

points
Type: System.Collections.Generic..::.IEnumerable<(Of <(Point>)>)

A generic enumerable set of Point objects to copy in to the new Multipoint.
coordinateSystem
Type: ESRI.ArcGISExplorer.Geometry..::.CoordinateSystem

The CoordinateSystem of the new Multipoint.

Remarks

Use this overload to initialize a Multipoint if you know at initialization time what the coordinate system of the geometry will be but not the other spatial location.

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