Show / Hide Table of Contents

Constructor Envelope

Envelope(MapPoint, MapPoint)

Initializes a new instance of the Envelope class from given diagonal corner points.

Declaration
public Envelope(MapPoint point1, MapPoint point2)
Parameters
Type Name Description
MapPoint point1

First corner

MapPoint point2

Second corner

Remarks

The SpatialReference of the given points must be the same. The spatial reference of the result Envelope will come from the points. Resulting envelope will span the area between two diagonal corner points, determined by their min and max coordinates.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.2
.NET 6.0100.13 - 200.2
.NET 6.0 Windows100.13 - 200.2
.NET 6.0 Android200.0 - 200.2
.NET 6.0 iOS200.0 - 200.2
.NET Framework100.0 - 200.2
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.2
Relevant samples
Clip geometry: Clip a geometry with another geometry.
Find route: Display directions for a route between two points.
Offline routing: Solve a route on-the-fly using offline data.

Envelope(Double, Double, Double, Double)

Initializes a new instance of the Envelope class from given diagonal corner coordinates.

Declaration
public Envelope(double x1, double y1, double x2, double y2)
Parameters
Type Name Description
Double x1

First coordinate along x-axis

Double y1

First coordinate along y-axis

Double x2

Second coordinate along x-axis

Double y2

Second coordinate along y-axis

Remarks

Resulting envelope will span the area between two diagonal corner coordinates, determined by the min and max values for each axis. The SpatialReference of the new envelope is initialized to null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.2
.NET 6.0100.13 - 200.2
.NET 6.0 Windows100.13 - 200.2
.NET 6.0 Android200.0 - 200.2
.NET 6.0 iOS200.0 - 200.2
.NET Framework100.0 - 200.2
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.2
Relevant samples
Edit and sync features: Synchronize offline edits with a feature service.

Envelope(Double, Double, Double, Double, SpatialReference)

Initializes a new instance of the Envelope class from given diagonal corner coordinates in the given SpatialReference.

Declaration
public Envelope(double x1, double y1, double x2, double y2, SpatialReference spatialReference)
Parameters
Type Name Description
Double x1

First coordinate along x-axis

Double y1

First coordinate along y-axis

Double x2

Second coordinate along x-axis

Double y2

Second coordinate along y-axis

SpatialReference spatialReference

Spatial reference in which coordinates are defined.

Remarks

Resulting envelope will span the area between two diagonal corner coordinates, determined by the min and max values for each axis.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.2
.NET 6.0100.13 - 200.2
.NET 6.0 Windows100.13 - 200.2
.NET 6.0 Android200.0 - 200.2
.NET 6.0 iOS200.0 - 200.2
.NET Framework100.0 - 200.2
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.2
Relevant samples
Change feature layer renderer: Change the appearance of a feature layer with a renderer.
Change sublayer renderer: Apply a renderer to a sublayer.
Create geometries: Create simple geometry types.
Display KML: Display KML from a URL, portal item, or local KML file.
Display subtype feature layer: Displays a composite layer of all the subtype values in a feature class.

Envelope(Double, Double, Double, Double, Double, Double)

Initializes a new instance of the Envelope class based on the x, y, and z values.

Declaration
public Envelope(double xMin, double yMin, double xMax, double yMax, double zMin, double zMax)
Parameters
Type Name Description
Double xMin

The minimal x-value.

Double yMin

The minimal y-value.

Double xMax

The maximum x-value.

Double yMax

The maximum y-value.

Double zMin

The minimal z-value.

Double zMax

The maximum z-value.

Remarks

If the values for min parameters are bigger than corresponding max parameters, then they are re-ordered. The resulting envelope always has min less than or equal to max. Resulting envelope will span the volume between two diagonal corner points. The SpatialReference of the new envelope is initialized to null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.2
.NET 6.0100.13 - 200.2
.NET 6.0 Windows100.13 - 200.2
.NET 6.0 Android200.0 - 200.2
.NET 6.0 iOS200.0 - 200.2
.NET Framework100.0 - 200.2
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.2

Envelope(Double, Double, Double, Double, Double, Double, SpatialReference)

Initializes a new instance of the Envelope class based on the x, y, and z values in the given SpatialReference.

Declaration
public Envelope(double xMin, double yMin, double xMax, double yMax, double zMin, double zMax, SpatialReference spatialReference)
Parameters
Type Name Description
Double xMin

The minimal x-value.

Double yMin

The minimal y-value.

Double xMax

The maximum x-value.

Double yMax

The maximum y-value.

Double zMin

The minimal z-value.

Double zMax

The maximum z-value.

SpatialReference spatialReference

The spatial reference for the envelope.

Remarks

If the values for min parameters are bigger than corresponding max parameters, then they are re-ordered. The resulting envelope always has min less than or equal to max. Resulting envelope will span the volume between two diagonal corner points.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.2
.NET 6.0100.13 - 200.2
.NET 6.0 Windows100.13 - 200.2
.NET 6.0 Android200.0 - 200.2
.NET 6.0 iOS200.0 - 200.2
.NET Framework100.0 - 200.2
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.2
Relevant samples
List KML contents: List the contents of a KML file.

Envelope(MapPoint, Double, Double)

Initializes a new instance of the Envelope class from a center point, with a defined width and height.

Declaration
public Envelope(MapPoint center, double width, double height)
Parameters
Type Name Description
MapPoint center

The center point for the envelope.

Double width

The width of the envelope.

Double height

The height of the envelope.

Remarks

The SpatialReference of the resulting envelope comes from the center point. This spatial reference also determines the unit of measure for the specified width and height values (see Unit).

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.2
.NET 6.0100.13 - 200.2
.NET 6.0 Windows100.13 - 200.2
.NET 6.0 Android200.0 - 200.2
.NET 6.0 iOS200.0 - 200.2
.NET Framework100.1 - 200.2
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.1 - 100.15
iOS100.1 - 100.15
UWP100.1 - 200.2

Envelope(MapPoint, Double, Double, Double)

Initializes a new instance of the Envelope class from a center point, with a defined width, height, and depth.

Declaration
public Envelope(MapPoint center, double width, double height, double depth)
Parameters
Type Name Description
MapPoint center

The center point for the envelope.

Double width

The width of the envelope.

Double height

The height of the envelope.

Double depth

The depth of the envelope.

Remarks

The SpatialReference of the resulting envelope comes from the center point. This spatial reference also determines the unit of measure for the specified width and height values (see Unit). The depth parameter value is assumed to be in meters.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.2
.NET 6.0100.13 - 200.2
.NET 6.0 Windows100.13 - 200.2
.NET 6.0 Android200.0 - 200.2
.NET 6.0 iOS200.0 - 200.2
.NET Framework100.1 - 200.2
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.1 - 100.15
iOS100.1 - 100.15
UWP100.1 - 200.2
In This Article
Back to top Copyright © 2022 Esri.