This document is archived and information here might be outdated.  Recommended version.


IEnvelope.DefineFromPoints Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IEnvelope Interface > IEnvelope.DefineFromPoints Method
ArcGIS Developer Help

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