CollectionItem(Object) Property

Returns a specific element of a Collection object either by position or by key.

Definition

Namespace: inmydata.WindowsForms.Library
Assembly: inmydata.WindowsForms.Library (in inmydata.WindowsForms.Library.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public Object this[
	Object Index
] { get; }

Parameters

Index  Object
(A) A numeric expression that specifies the position of an element of the collection. Index must be a number from 1 through the value of the collection's Count property. Or (B) An Object expression that specifies the position or key string of an element of the collection.

Return Value

Object
Returns a specific element of a Collection object either by position or by key. Read-only.

Remarks

If Index is of type Object, the Item property attempts to treat it as a String, Char, Char array, or integer value. If Item cannot convert Index to String or Integer, it throws an ArgumentException exception.

See Also