IBindableVectorView IBindableVectorView IBindableVectorView Interface

Represents a read-only vector collection of objects that is bindable.

Syntax

Declaration

public interface IBindableVectorViewpublic interface IBindableVectorViewPublic Interface IBindableVectorView

Inheritance Hierarchy

Inherited Members

Inherited methods

Remarks

This interface supports the creation of data bindable collections in C++. When programming with .NET, you should use ObservableCollection(Of T) or implement IList and INotifyCollectionChanged. For more info, see Binding to collections.

Interface inheritance

IBindableVectorView inherits IBindableIterable. Types that implement IBindableVectorView also implement the interface members of IBindableIterable for C++ usage.

Properties summary

Gets the number of items in the vector.

Methods summary

Returns the item at the specified index in the vector.

Returns the index of a specified item in the vector.

Properties

  • Size
    Size
    Size
    Size

    Gets the number of items in the vector.

    public uint Size { get; }public uint Size { get; }Public ReadOnly Property Size As uintpublic uint Size { get; }

    Property Value

    • uint
      uint
      uint

      The number of items in the vector.

    Remarks

    This interface supports the creation of data bindable collections in C++. When programming with .NET, you should use ObservableCollection(Of T) or implement IList and INotifyCollectionChanged.

Methods

  • GetAt(UInt32)
    GetAt(UInt32)
    GetAt(UInt32)
    GetAt(UInt32)

    Returns the item at the specified index in the vector.

    public object GetAt(UInt32 index)public object GetAt(UInt32 index)Public Function GetAt(index As UInt32) As objectpublic object GetAt(UInt32 index)

    Parameters

    • index
      System.UInt32
      System.UInt32
      System.UInt32

      The zero-based index of the item in the vector to return.

    Returns

    • object
      object
      object

      The item at the specified index.

    Remarks

    This interface supports the creation of data bindable collections in C++. When programming with .NET, you should use ObservableCollection(Of T) or implement IList and INotifyCollectionChanged.

  • IndexOf(Object, UInt32)
    IndexOf(Object, UInt32)
    IndexOf(Object, UInt32)
    IndexOf(Object, UInt32)

    Returns the index of a specified item in the vector.

    public bool IndexOf(Object value, UInt32 index)public bool IndexOf(Object value, UInt32 index)Public Function IndexOf(value As Object, index As UInt32) As boolpublic bool IndexOf(Object value, UInt32 index)

    Parameters

    • value
      System.Object
      System.Object
      System.Object

      The item to find in the vector.

    • index
      System.UInt32
      System.UInt32
      System.UInt32

      The zero-based index of the item if found. 0 is returned if the item is not found, so be sure to check the return value.

    Returns

    • bool
      bool
      bool

      true if the item is found; false if the item is not found.

    Remarks

    This interface supports the creation of data bindable collections in C++. When programming with .NET, you should use ObservableCollection(Of T) or implement IList and INotifyCollectionChanged.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Interop.dll