IArray Interface

Provides access to members that control a simple array of objects.

Description

An Array object is used to hold an indexed collection of generic objects. The Array uses a zero-based index.

Members

Name Description
Method Add Adds an object to the array.
Read-only property Count The element count of the array.
Read-only property Element Searches for the object in the array.
Method Insert Adds an object to the array at the specified index.
Method Remove Removes an object from the array.
Method RemoveAll Removes all objects from the array.

IArray.Add Method

Adds an object to the array.

Public Sub Add ( _
    ByVal unk As Object _
)
public void Add (
    object unk
);

Description

Adds the element to the end of the array.

Remarks

When adding an object to an Array, you are merely adding a new reference to the object not copying it. The reference is released when the Array is destroyed or the object is removed.

IArray.Count Property

The element count of the array.

Public ReadOnly Property Count As Integer
public int Count {get;}

Description

Returns the number of elements in the array.

IArray.Element Property

Searches for the object in the array.

Public Function get_Element ( _
    ByVal Index As Integer _
) As Object
public object get_Element (
    int Index
);

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.

IArray.Insert Method

Adds an object to the array at the specified index.

Public Sub Insert ( _
    ByVal Index As Integer, _
    ByVal unk As Object _
)
public void Insert (
    int Index,
    object unk
);

Description

Adds the element to the array at the specified index. 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.

IArray.Remove Method

Removes an object from the array.

Public Sub Remove ( _
    ByVal Index As Integer _
)
public void Remove (
    int Index
);

Description

Removes the element at the specified index from 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.

IArray.RemoveAll Method

Removes all objects from the array.

Public Sub RemoveAll ( _
)
public void RemoveAll (
);

Description

Removes all of the elements from the array.

Classes that implement IArray

Classes Description
Array Generic array of objects.

Remarks

When adding an object to an Array, you are merely adding a new reference to the object not copying it. The reference is released when the Array is destroyed or the object is removed.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.