ArcObjects Library Reference (Geometry)  

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
public IEnumSegment get_IndexedEnumSegments (
    IGeometry queryGeometry
HRESULT get_IndexedEnumSegments(
  IGeometry* queryGeometry,
  IEnumSegment** newIndexedSegmentEnumerator



  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.


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.


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