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


IGeometryCollection.QueryGeometries Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IGeometryCollection.QueryGeometries Method

Populates the array with references to a sub-sequence of geometries. This method is intended for internal use only.

[Visual Basic .NET]
Public Sub QueryGeometries ( _
    ByVal Index As Integer, _
    ByVal Count As Integer, _
    ByRef geometries As IGeometry _
)
[C#]
public void QueryGeometries (
    int Index,
    int Count,
    ref IGeometry geometries
);
[C++]
HRESULT QueryGeometries(
  long Index,
  long Count,
  IGeometry** geometries
);
[C++]

Parameters Index Index is a parameter of type long Count Count is a parameter of type long geometries [out]
geometries is a parameter of type IGeometry

Product Availability

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

Remarks

Note: The GeometryType returned by the QueryGeometries method depends on which object type points the IGeometryCollection pointer.

IGeometryCollection Object GeometryType Returned Object GeometryType
Polygon
Rings
Polyline
Paths
Multipoint
Points
Multipatch
TriangleFans or TriangleStrips or Rings
TriangleFan
Points
TriangleStrip
Points
Geometry Bag
Any type of IGeometry

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

See Also

IGeometryCollection Interface