ArcObjects Library Reference (Geometry)  

IEnvelope.DefineFromPoints Method

Defines the envelope to cover all the points.

[Visual Basic .NET]
Public Sub DefineFromPoints ( _
    ByVal Count As Integer, _
    ByRef Points As IPoint _
public void DefineFromPoints (
    int Count,
    ref IPoint Points
HRESULT DefineFromPoints(
  long Count,
  IPoint** Points


Count   Count is a parameter of type long Points [in]

  Points is a parameter of type IPoint

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Defines this Envelope from an array of Points.  The XMin, YMin, XMax, and YMax correspond to the minimum X value, minimum Y value, maximum X value, and maximum Y value respectively of the the Points in the array.


This is similar to getting the Envelope of a Multipoint.

Note: It is also possible to define a degenerate point Envelope by passing a single Point as an argument.  The IPoint parameter accepts both a single IPoint object and an array of IPoints.  To use an array, pass the desired starting element of the array as the input argument.

See Also

IEnvelope Interface

.NET Related Topics

Using ArcObjects (COM-based) in .NET