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


IEditor.SearchSelection Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Editor)  

IEditor.SearchSelection Method

Searches the edit selection using the given location.

[Visual Basic .NET]
Public Function SearchSelection ( _
    ByVal point As IPoint _
) As IEnumFeature
[C#]
public IEnumFeature SearchSelection (
    IPoint point
);

Product Availability

Available with ArcGIS Desktop.

Remarks

SearchSelection is a convenient method that creates a sub-selection of the Map's currently selected features. The sub-selection contains only features that are within close proximity to the input point location. Use SearchSelection when you have a large selection (≥ 25 features) and you want to search for a selected feature that is near a specific point location. For example, use this method when checking if the mouse is positioned over a selected feature. It is considerably quicker to interrogate only features that are near the cursor than to look at all selected features in the Map. Note: with small Map selections (< 25 features), the reverse is true; there is no need to call SearchSelection to reduce the selection as it is already small and likely cached in memory.

See Also

IEditor Interface