ILongArray Interface

Provides access to members that control long arrays.

Description

The ILongArray interface provides methods and properties for inserting, removing and accessing elements in a LongArray via a zero-based index.

Members

Name Description
Method Add Adds an element to the array.
Read-only property Count The number of elements in the array.
Read/write property Element An element in the array.
Method Insert Inserts an element to the array.
Method Remove Removes an element from the array.
Method RemoveAll Removes all elements from the array.

ILongArray.Add Method

Adds an element to the array.

Public Sub Add ( _
    ByVal Element As Integer _
)
public void Add (
    int Element
);

Description

Adds the element to the end of the array.

ILongArray.Count Property

The number of elements in the array.

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

Description

Returns the number of elements in the array.

ILongArray.Element Property

An element in the array.

Public Function get_Element ( _
    ByVal Index As Integer _
) As Integer
Public Sub set_Element ( _
    ByVal Index As Integer, _
    ByVal pElement As Integer _
)
public int get_Element (
    int Index
);
public void set_Element (
    int Index,
    int pElement
);

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.

ILongArray.Insert Method

Inserts an element to the array.

Public Sub Insert ( _
    ByVal Index As Integer, _
    ByVal Element As Integer _
)
public void Insert (
    int Index,
    int Element
);

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.

ILongArray.Remove Method

Removes an element 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.

ILongArray.RemoveAll Method

Removes all elements from the array.

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

Description

Removes all of the elements from the array.

Classes that implement ILongArray

Classes Description
LongArray An object for holding a Long array.

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