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 _
)
[C#]
public void DefineFromPoints (
    int Count,
    ref IPoint Points
);
[C++]
HRESULT DefineFromPoints(
  long Count,
  IPoint** Points
);
[C++]

Parameters

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.

Description

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.

Remarks

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