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


IARSearchDef.SetEnvelopeShape Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARSearchDef Interface > IARSearchDef.SetEnvelopeShape Method
ArcGIS Developer Help

IARSearchDef.SetEnvelopeShape Method

Set the search shape to an envelope.

[Visual Basic .NET]
Public Sub SetEnvelopeShape ( _
    ByVal xMin As Double, _
    ByVal yMin As Double, _
    ByVal xMax As Double, _
    ByVal yMax As Double, _
    [ByVal bufferDistance As Double] _
)
[C#]
public void SetEnvelopeShape (
    double xMin,
    double yMin,
    double xMax,
    double yMax,
    double bufferDistance
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Sets the search geometry of the ArcReaderSearchDef to an envelope specfied by the xMin, yMin, xMax, yMax coordinates given in IARMap::MapUnits. To buffer the search geometry specify a buffer distance in IARMap::MapUnits. By default the buffer distance is 0.0.

The method specifies the shape against which the ARFeature objects will be tested. Use the SpatialRelationship property to define the relationship between the shape you have specified and the shape of each ARFeature object. 

See Also

IARSearchDef Interface | IARSearchDef.SetPointShape Method | IARSearchDef.SetARFeatureShape Method