ArcObjects Library Reference  (Geometry)    

IGeometryBridge.QueryPoints Method

Copies some points to an existing array of points.

[Visual Basic 6.0]
Sub QueryPoints(
    ByVal pPointCollection As IPointCollection4, _
    ByVal Index As Long, _
    ByVal Points() As IPoint _
)
[Visual Basic .NET]
Public Sub QueryPoints ( _
    ByVal pPointCollection As IPointCollection4, _
    ByVal Index As Integer, _
    ByRef Points As IPoint[] _
)
[C#]
public void QueryPoints (
    IPointCollection4 pPointCollection,
    int Index,
    ref IPoint[] Points
);
[Java]
public void queryPoints (
    IPointCollection4 pPointCollection,
    int Index,
    IPoint[] Points
)
throws
    IOException,
    AutomationException
[C++]
HRESULT QueryPoints(
  IPointCollection4* pPointCollection,
  long Index,
  Array* Points
);
[C++]

Parameters

pPointCollection [in]

  pPointCollection is a parameter of type IPointCollection4

Index

  Index is a parameter of type long

Points [in, out]

  Points is a parameter of type Array

Product Availability

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

Description

All development languages compatible version of IPointCollection::QueryPoints.

When calling this method no count parameter is needed. The length of the array parameter will be used in place of the explicit number given in the IPointCollection::QueryPoints call.  This also requires that the array parameter given to IGeometryBridge::QueryPoints can not be longer than the length of the PointCollection minus the index parameter.

See Also

IGeometryBridge Interface

Example

IGeometryBridge_QueryPoints_Example