ArcObjects Library Reference  (Geometry)    

IGeometryCollection.RemoveGeometries Method

Removes references to some geometries from this collection.

[Visual Basic 6.0]
Sub RemoveGeometries(
    ByVal Index As Long, _
    ByVal Count As Long _
)
[Visual Basic .NET]
Public Sub RemoveGeometries ( _
    ByVal Index As Integer, _
    ByVal Count As Integer _
)
[C#]
public void RemoveGeometries (
    int Index,
    int Count
);
[Java]
public void removeGeometries (
    int Index,
    int Count
)
throws
    IOException,
    AutomationException
[C++]
HRESULT RemoveGeometries(
  long Index,
  long Count
);
[C++]

Parameters

Index

  Index is a parameter of type long

Count

  Count is a parameter of type long

Product Availability

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

Remarks

RemoveGeometries deletes count number of geometries from the index location.
[Visual Basic 6.0]

VB Example: Remove 3 geometries from index 1

 m_pGeoColl.RemoveGeometries 1, 3

See Also

IGeometryCollection Interface