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

IRasterAnalysisEnvironment.SetExtent Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeoAnalyst > ESRI.ArcGIS.GeoAnalyst > Interfaces > IR > IRasterAnalysisEnvironment Interface > IRasterAnalysisEnvironment.SetExtent Method
ArcGIS Developer Help

IRasterAnalysisEnvironment.SetExtent Method

Sets the type and values of extent in the RasterAnalysis.

[Visual Basic .NET]
Public Sub SetExtent ( _
    ByVal envType As esriRasterEnvSettingEnum, _
    [ByRef extentProvider As Object], _
    [ByRef snapRasterData As Object] _
public void SetExtent (
    esriRasterEnvSettingEnum envType,
    ref object extentProvider,
    ref object snapRasterData
HRESULT SetExtent(
  esriRasterEnvSettingEnum envType,
  Variant* extentProvider,
  Variant* snapRasterData
envType [in]

envType is a parameter of type esriRasterEnvSettingEnum extentProvider [in, optional]
extentProvider is a parameter of type VARIANT* snapRasterData [in, optional]
snapRasterData is a parameter of type VARIANT*

Product Availability

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



An enumeration type specifying the raster extent environment settings for analysis. All subsequent results will be to this extent. It can be of type

esriRasterEnvMinOf � Intersection of Inputs - All input feature extents are intersected and the extent common to all is used as the extent values for the study area. This is the default.

esriRasterEnvMaxOf - Union of Inputs - All input feature extents are combined and the outer extent of the union is used.

esriRasterEnvValue - Value - User specified values for the Left, Right, Top and Bottom extent (x, y values) of the study area.


An envelope object supporting IEnvelope interface or RasterDataset that is used to provide the environment values of the analysis extent.


A RasterDataset that can be used to snap all output raster datasets to the cell registration of the specified raster. All subsequent results will share the lower-left corner and cell size of the specified raster.

See Also

IRasterAnalysisEnvironment Interface