![]() |
This document is archived and information here might be outdated. Recommended version. |
| ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryCollection Interface > IGeometryCollection.QueryGeometries Method (ArcObjects .NET 10.4 SDK) |
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
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 |
When using C# you must use the IGeometryBridge interface to call this method.
When using VBNET you must use the IGeometryBridge interface to call this method.