ArcObjects Library Reference (System)  

IArray.Element Property

Searches for the object in the array.

[Visual Basic .NET]
Public Function get_Element ( _
    ByVal index As Integer _
) As Object
[C#]
public object get_Element (
    int index
);
[C++]
HRESULT get_Element(
  long index,
  LPUNKNOWN* unk
);
[C++]

Parameters

index [in]   index is a parameter of type long unk [out, retval]   unk is a parameter of type LPUNKNOWN

Product Availability

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

Description

Returns 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

IArray Interface

.NET Snippets

Remove Bookmark3D from SceneBookmarks | Navigate Scene to Bookmark3D |

.NET Samples

Calculate area geoprocessing function tool (Code Files: CalculateAreaFunction) | Create a custom default raster catalog renderer (Code Files: CustomRasterCatalogRenderer_VBNET) | Create a custom raster type (Code Files: TestThumbnailBuilder) | Create a Mosaic dataset (Code Files: CreateMosaicDataset) | Create camera flyby from path (Code Files: frmCameraPath) | Import signposts (Code Files: ImportDynamapSignsFunction ImportMultiNetSignsFunction ImportNavStreetsSignsFunction) | Move a graphic along a path in ArcMap (Code Files: AnimationUtils frmCreateGraphicTrackOptions) | Multiple globe viewers (Code Files: MultipleGlobeViewers) | Navigating around the SceneControl (Code Files: SceneNavigateAndBookmarks) | Subset network evaluators (Code Files: FilterSubsetEvaluator ScaleSubsetEvaluator SubsetHelper SubsetHelperUI) |

.NET Related Topics

Building a custom geoprocessing function tool | How to geocode a single address | How to open and prepare a raster type | Using ArcObjects as tool input |