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


IVariantArray.Element Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

IVariantArray.Element Property

An element in the array.

[Visual Basic .NET]
Public Function get_Element ( _
    ByVal index As Integer _
) As Object
[Visual Basic .NET]
Public Sub set_Element ( _
    ByVal index As Integer, _
    ByVal Element As Object _
)
[C#]
public object get_Element (
    int index
);
[C#]
public void set_Element (
    int index,
    object Element
);
[C++]
HRESULT get_Element(
  long index,
  VARIANT* Element
);
[C++]
HRESULT put_Element(
  long index,
  VARIANT Element
);
[C++]

Parameters index [in] index is a parameter of type long Element [out, retval] Element is a parameter of type VARIANT index [in] index is a parameter of type long Element [in] Element is a parameter of type VARIANT

Product Availability

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

Description

Returns or sets the element at the specified index in the array. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.

See Also

IVariantArray Interface