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


IElementCollection.QueryItem Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IE > IElementCollection Interface > IElementCollection.QueryItem Method
ArcGIS Developer Help

IElementCollection.QueryItem Method

Element at the given index.

[Visual Basic .NET]
Public Sub QueryItem ( _
    ByVal Index As Integer, _
    ByRef Element As IElement, _
    [ByRef LinkedFeatureID As Integer] _
)
[C#]
public void QueryItem (
    int Index,
    ref IElement Element,
    ref int LinkedFeatureID
);
[C++]
HRESULT QueryItem(
  long Index,
  IElement** Element,
  System.Int32* LinkedFeatureID
);
[C++]
Parameters
Index [in]

Index is a parameter of type long Element [out]
Element is a parameter of type IElement** LinkedFeatureID
LinkedFeatureID is a parameter of type long*

Product Availability

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

Description

Passes out the element at the specified index.  Will also pass out the feature ID for feature-linked elements if the FeatureID parameter is used.

See Also

IElementCollection Interface