A reference to the ith geometry.
[C++] HRESULT get_Geometry( long Index, IGeometry** outPart );
Index is a parameter of type long
outPart [out, retval]
outPart is a parameter of type IGeometry
Returns the ith Geometry from the GeometryCollection. The first Geometry has index 0 and the last Geometry has index equal to GeometryCount - 1. The last Geometry can also be referenced using index -1.
Note: The GeometryType returned by the Geometry method depends on which object type points the IGeometryCollection pointer.
|IGeometryCollection Object GeometryType||Returned Object GeometryType|
||TriangleFans or TriangleStrips or Rings|
||Any type of IGeometry|