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


IBasicMap.SelectByShape Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IB > IBasicMap Interface > IBasicMap.SelectByShape Method
ArcGIS Developer Help

IBasicMap.SelectByShape Method

Selects features in the map given a shape and a selection environment (optional).

[Visual Basic .NET]
Public Sub SelectByShape ( _
    ByVal Shape As IGeometry, _
    ByVal env As ISelectionEnvironment, _
    ByVal justOne As Boolean _
)
[C#]
public void SelectByShape (
    IGeometry Shape,
    ISelectionEnvironment env,
    bool justOne
);
[C++]
HRESULT SelectByShape(
  IGeometry* Shape,
  ISelectionEnvironment* env,
  VARIANT_BOOL justOne
);
[C++]
Parameters
Shape [in]

Shape is a parameter of type IGeometry* env [in]
env is a parameter of type ISelectionEnvironment* justOne [in]
justOne is a parameter of type bool

Product Availability

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

Description

The justOne parameter tells the search to stop once it has found one feature.

See Also

IBasicMap Interface