Adds a copy of the specified enumerable set of Points 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.900 (2.0.0.900)
Syntax
C# |
---|
public void AddPoints( IEnumerable<Point> points ) |
Visual Basic (Declaration) |
---|
Public Sub AddPoints ( _ points As IEnumerable(Of Point) _ ) |
Parameters
- points
- Type: System.Collections.Generic..::.IEnumerable<(Of <(Point>)>)
A generic enumerable set of Point objects to be copied in to the Multipoint.
Examples
The code below defines a new Multipoint from the verticies of an existing Polygon, by using the AddPoints method.
The code assumes that there is an existing single part Polygon object named poly.
Instances of the Point class are fully-qualified to avoid namespace clashes with System.Drawing.Point.
CopyC#
CopyVB.NET

// Create a new Multipoint using the CoordinateSystem of the existing Polygon. Multipoint mpt = new Multipoint(poly.CoordinateSystem); // Add the vertices of the Polygon (using the first part if a multipart Polygon) to the Multipoint. // Points are retrieved and set by value, therefore the mpt and poly have separate collections of Point objects. mpt.AddPoints(poly.GetRing(0));

' Create a new Multipoint using the CoordinateSystem of the existing Polygon. Dim mpt As Multipoint = New Multipoint(poly.CoordinateSystem) ' Add the vertices of the Polygon (using the first part if a multipart Polygon) to the Multipoint. ' Points are retrieved and set by value, therefore the mpt and poly have separate collections of Point objects. mpt.AddPoints(poly.GetRing(0))
See Also
Relate Topics:
AddPoint Method
Clone Method
CreateFromXmlString Method
GetLabelPoint Method
GetPoint Method
GetPoints Method
GetXmlSchema Method
InsertPoint Method
InsertPoints Method
RemoveAllPoints Method
RemovePointAt Method
RemovePointsAt Method
SetPoint Method
SetPoints Method
ToString Method
AddPoint Method
Clone Method
CreateFromXmlString Method
GetLabelPoint Method
GetPoint Method
GetPoints Method
GetXmlSchema Method
InsertPoint Method
InsertPoints Method
RemoveAllPoints Method
RemovePointAt Method
RemovePointsAt Method
SetPoint Method
SetPoints Method
ToString Method
Created by Atop CHM to web converter,© 2009 all right reserved.