IVector<T> class winrt Interface

Represents a random-access collection of elements.

Inheritance
Implemented types
Implementers
Available Extensions

Constructors

IVector.fromRawPointer(Pointer<COMObject> ptr, {required String iterableIid, T creator(Pointer<COMObject>)?, T enumCreator(int)?, Type? intType})
Creates an instance of IVector using the given ptr and iterableIid.

Properties

hashCode int
The hash code for this object.
no setterinherited
ptr Pointer<COMObject>
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Gets the number of items in the vector.
no setter

Methods

addRef() int
inherited
append(T value) → void
Appends an item to the end of the vector.
clear() → void
Removes all items from the vector.
first() IIterator<T>
Returns an iterator for the items in the collection.
override
getAt(int index) → T
Returns the item at the specified index in the vector.
getIids(Pointer<Uint32> iidCount, Pointer<Pointer<GUID>> iids) int
inherited
getMany(int startIndex, int capacity, Pointer<NativeType> value) int
Retrieves multiple items from the the vector beginning at the given index.
getRuntimeClassName(Pointer<IntPtr> className) int
inherited
getTrustLevel(Pointer<Int32> trustLevel) int
inherited
getView() List<T>
Returns an immutable view of the vector.
indexOf(T value, Pointer<Uint32> index) bool
Retrieves the index of a specified item in the vector.
insertAt(int index, T value) → void
Inserts an item at a specified index in the vector.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryInterface(Pointer<GUID> riid, Pointer<Pointer<NativeType>> ppvObject) int
inherited
release() int
inherited
removeAt(int index) → void
Removes the item at the specified index in the vector.
removeAtEnd() → void
Removes the last item from the vector.
replaceAll(List<T> value) → void
Replaces all the items in the vector with the specified items.
setAt(int index, T value) → void
Sets the value at the specified index in the vector.
toInterface(String iid) Pointer<COMObject>
Cast an existing COM object to a specified interface.
inherited
toList() List<T>
Creates an unmodifiable List from the current IVector instance.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited