IEnumGeometryBind Interface

Provides access to members that bind a feature cursor or a selection to a geometry enumerator.

Description

This interface allows a newly-instantiated EnumFeatureGeometry object to be bound to either a feature class or a selection set. The object can then be cast to the IEnumGeometry interface and the geometries can be iterated through. This is effectively a shortcut to use instead of creating a search cursor on the feature class or selection set and retrieving geometries from the features returned.

Members

Name Description
Method BindGeometrySource Bind the source of the geometry to the enumeration.
Read-only property GeometrySource The geometry source - either a feature class or a selection set.
Read-only property OutputFilter The query filter that was used to bind the geometry source.

IEnumGeometryBind.BindGeometrySource Method

Bind the source of the geometry to the enumeration.

Public Sub BindGeometrySource ( _
    ByVal OutputFilter As IQueryFilter, _
    ByVal collectionSource As Object _
)
public void BindGeometrySource (
    IQueryFilter OutputFilter,
    object collectionSource
);

Description

This method binds the enumerator to a geometry source (a feature class or a selection set). After this method has been invoked on an object, the object can be cast to the IEnumGeometry interface in order to iterate through the geometries of the source.

Remarks

A query filter should always be provided to the OutputFilter parameter. Passing a null value will not result in an error, but when using this interface the only field that can be inspected from returned features is the geometry field, and the query filter should reflect this.

IEnumGeometryBind.GeometrySource Property

The geometry source - either a feature class or a selection set.

Public Sub GeometrySource ( _
    ByRef GeometrySource As Object _
)
public void GeometrySource (
    ref object GeometrySource
);

IEnumGeometryBind.OutputFilter Property

The query filter that was used to bind the geometry source.

Public Sub OutputFilter ( _
    ByRef OutputFilter As IQueryFilter _
)
public void OutputFilter (
    ref IQueryFilter OutputFilter
);

Classes that implement IEnumGeometryBind

Classes Description
EnumFeatureGeometry Esri enumerator for geometries of a feature class or selection set.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.