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


ISelectionEnvironment Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ISelectionEnvironment Interface

Provides access to members that control the selection environment.

Product Availability

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

Members

Description
Read/write property AreaSearchDistance Distance used for selecting areas by proximity.
Read/write property AreaSelectionMethod Selection method used for areas.
Read/write property CombinationMethod Combination method for the selection results.
Read/write property DefaultColor Default selection color.
Read/write property LinearSearchDistance Distance used for selecting lines by proximity.
Read/write property LinearSelectionMethod Selection method used for lines.
Read/write property PointSearchDistance Distance used for selecting points by proximity.
Read/write property PointSelectionMethod Selection method used for points.
Read/write property SearchTolerance Search tolerance in device units.

CoClasses that implement ISelectionEnvironment

CoClasses and Classes Description
SelectionEnvironment Defines the feature selection environment.

Remarks

ISelectionEnvironment controls the way the selection is created and displayed. The application's selection environment is available via IMxApplication::SelectionEnvironment.

AreaSelectionMethod, LinearSelectionMethod and PointSelectionMethod define the spatial relations used to select interactively the different kinds of features. This is similar to the options found in the Selection Options dialog in ArcMap for the interactive selection but it can be set differently depending on the feature's geometry type.

Also a different search distance can be set for each type using the AreaSearchDistance, LinearSearchDistance and PointSearchDistance. These distance are used when searching by proximity for instance when using the IMap::SelectByShape method.

The CombinationMethod property defines how the selection performed will combine with an existing selection.

The DefaultColor property allows you to replace the default light blue of selected object with your favorite color.

The SearchTolerance property defines a global search tolerance to use for selection operations as exemplified in the IAnchorPoint example.

See Also

IMxApplication.SelectionEnvironment Property

.NET Samples

Custom scene navigation commands (Code Files: SelectFeatures)

.NET Related Topics

Performing map selection