ArcObjects Library Reference (PublisherControls)  

IARSearchDef.SetPointShape Method

Set the search shape to a point.

[Visual Basic .NET]
Public Sub SetPointShape ( _
    ByVal xCoord As Double, _
    ByVal yCoord As Double, _
    [ByVal bufferDistance As Double] _
)
[C#]
public void SetPointShape (
    double xCoord,
    double yCoord,
    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 an point specfied by the xCoord and yCoord 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. 

Errors Returned

2123 800A084B: The buffer cannot be a negative number 

See Also

IARSearchDef Interface | IARSearchDef.SetEnvelopeShape Method | IARSearchDef.SetARFeatureShape Method