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


ISegmentCollection.IndexedEnumSegments Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISegmentCollection Interface > ISegmentCollection.IndexedEnumSegments Property
ArcGIS Developer Help

ISegmentCollection.IndexedEnumSegments Property

A new indexed segment enumerator for this segment collection.

[Visual Basic .NET]
Public Function get_IndexedEnumSegments ( _
    ByVal queryGeometry As IGeometry _
) As IEnumSegment
[C#]
public IEnumSegment get_IndexedEnumSegments (
    IGeometry queryGeometry
);
[C++]
HRESULT get_IndexedEnumSegments(
  IGeometry* queryGeometry,
  IEnumSegment** newIndexedSegmentEnumerator
);
[C++]
Parameters
queryGeometry 

queryGeometry is a parameter of type IGeometry* newIndexedSegmentEnumerator [out, retval]
newIndexedSegmentEnumerator is a parameter of type IEnumSegment**

Product Availability

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

Description

The IndexedEnumSegments method returns a spatially indexed enumerator of segments. For example this enumerator can be used to quickly retrieve a small set of segments near a point or an envelope and then perform operations on those segments. Any 2D geometry type can be passed to the IndexedEnumSegments method. Depending on the input geometry the type of spatial index varies.

Remarks

Note: In order to have this method returning an indexed segment enumerator the ISpatialIndex::AllowIndexing property must be set to 'true' on the geometry.

See Also

ISegmentCollection Interface