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


IARSearchDef.SetARFeatureShape Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (PublisherControls)  

IARSearchDef.SetARFeatureShape Method

Set the search shape to the shape of a feature.

[Visual Basic .NET]
Public Sub SetARFeatureShape ( _
    ByVal pARFeature As ARFeature, _
    [ByVal bufferDistance As Double] _
)
[C#]
public void SetARFeatureShape (
    ARFeature pARFeature,
    double bufferDistance
);
[C#]

Optional Values

bufferDistance   Supply 0 as a default value.

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Sets the search geometry of the ArcReaderSearchDef to the shape of the specified ARFeature. 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. 

Errors Returned

2117 800A0845: No ARFeature has been supplied

See Also

IARSearchDef Interface | IARSearchDef.SetPointShape Method | IARSearchDef.SetEnvelopeShape Method