SetterBaseCollection
SetterBaseCollection
SetterBaseCollection
SetterBaseCollection
Class
Definition
Represents a collection of objects that inherit from SetterBase.
public : sealed class SetterBaseCollection : IIterable, IVector, ISetterBaseCollectionpublic sealed class SetterBaseCollection : IEnumerable, IList, ISetterBaseCollectionPublic NotInheritable Class SetterBaseCollection Implements IEnumerable, IList, ISetterBaseCollection// This API is not available in Javascript.
<Style ...>
oneOrMoreSetters
</Style>
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Enumerating the collection in C# or Microsoft Visual Basic
A SetterBaseCollection is enumerable, so you can use language-specific syntax such as foreach in C# to enumerate the items in the collection. The compiler does the type-casting for you and you won't need to cast to IEnumerable<SetterBase> explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast to IEnumerable
Constructors
SetterBaseCollection() SetterBaseCollection() SetterBaseCollection() SetterBaseCollection()
Initializes a new instance of the SetterBaseCollection class.
public : SetterBaseCollection()public SetterBaseCollection()Public Sub New()// This API is not available in Javascript.
Properties
IsSealed IsSealed IsSealed IsSealed
Gets a value that indicates whether the collection is in a read-only state.
public : PlatForm::Boolean IsSealed { get; }public bool IsSealed { get; }Public ReadOnly Property IsSealed As bool// This API is not available in Javascript.
- Value
- PlatForm::Boolean bool bool bool
true if this object is in a read-only state and cannot be changed; otherwise, false.
Item[Int32] Item[Int32] Item[Int32] Item[Int32]
Gets or sets the element at the specified index.
This member is not implemented in C++T this[int index] { get; set; }Property Item(index As Integer) As TT this[int index] { get; set; }
- index
The zero-based index of the element to get or set.
- Value
- T T T T
The element at the specified index.
index is not a valid index in the System.Collections.Generic.IList`1.
The property is set and the System.Collections.Generic.IList`1 is read-only.
Size Size Size Size
Gets the size (count) of the collection.
public : unsigned int Size { get; }This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
- Value
- unsigned int uint uint uint
The count of items in the collection.
Remarks
Note
The equivalent Microsoft .NET API is Count.
Methods
Append(SetterBase) Append(SetterBase) Append(SetterBase) Append(SetterBase)
Adds a new item to the collection.
public : void Append(SetterBase value)This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
The new item to add.
Remarks
Note
The equivalent Microsoft .NET API is Add.
- See Also
Clear() Clear() Clear() Clear()
Removes all items from the collection.
public : void Clear()This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
First() First() First() First()
Returns the iterator for iteration over the items in the collection.
public : IIterator<SetterBase> First()This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
The iterator object. The iterator's current position is at the 0-index position, or at the collection end if the collection is empty.
GetAt(UInt32) GetAt(UInt32) GetAt(UInt32) GetAt(UInt32)
Returns the SetterBase located at the specified index.
public : SetterBase GetAt(unsigned int index)This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
- index
- unsigned int UInt32 UInt32 UInt32
The integer index for the value to retrieve.
The SetterBase value at the specified index.
Remarks
Note
The equivalent Microsoft .NET API is Item (the indexer).
- See Also
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()
Returns an enumerator that iterates through the collection.
This member is not implemented in C++IEnumerator<T> GetEnumerator()Function GetEnumerator As IEnumerator(Of T)IEnumerator<T> GetEnumerator()
An enumerator that can be used to iterate through the collection.
GetMany(UInt32, SetterBase[]) GetMany(UInt32, SetterBase[]) GetMany(UInt32, SetterBase[]) GetMany(UInt32, SetterBase[])
Retrieves multiple elements in a single pass through the iterator.
public : unsigned int GetMany(unsigned int startIndex, SetterBase[] items)This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
- startIndex
- unsigned int UInt32 UInt32 UInt32
The index from which to start retrieval.
- items
- SetterBase[] SetterBase[] SetterBase[] SetterBase[]
Provides the destination for the result. Size the initial array size as a capacity in order to specify how many results should be retrieved.
The number of items returned.
Remarks
Note
The equivalent Microsoft .NET API is CopyTo.
- See Also
GetView() GetView() GetView() GetView()
Gets an immutable view into the collection.
public : IVectorView<SetterBase> GetView()This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
An object representing the immutable collection view.
IndexOf(T) IndexOf(T) IndexOf(T) IndexOf(T)
Determines the index of a specific item in the System.Collections.Generic.IList`1.
This member is not implemented in C++int IndexOf(T item)Function IndexOf(item As T) As Integerint IndexOf(T item)
- item
- T T T T
The object to locate in the System.Collections.Generic.IList`1.
The index of item if found in the list; otherwise, -1.
IndexOf(SetterBase, UInt32) IndexOf(SetterBase, UInt32) IndexOf(SetterBase, UInt32) IndexOf(SetterBase, UInt32)
Retrieves the index of the specified item.
public : PlatForm::Boolean IndexOf(SetterBase value, unsigned int index)This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
The value to find in the collection.
- index
- unsigned int UInt32 UInt32 UInt32
The index of the item to find, if found.
true if an item with the specified value was found; otherwise, false.
Remarks
Note
The equivalent Microsoft .NET API is IndexOf.
Insert(Int32, T) Insert(Int32, T) Insert(Int32, T) Insert(Int32, T)
Inserts an item to the System.Collections.Generic.IList`1 at the specified index.
This member is not implemented in C++void Insert(int index, T item)Sub Insert(index As Integer, item As T)void Insert(int index, T item)
- index
The zero-based index at which item should be inserted.
- item
- T T T T
The object to insert into the System.Collections.Generic.IList`1.
index is not a valid index in the System.Collections.Generic.IList`1.
The System.Collections.Generic.IList`1 is read-only.
InsertAt(UInt32, SetterBase) InsertAt(UInt32, SetterBase) InsertAt(UInt32, SetterBase) InsertAt(UInt32, SetterBase)
Inserts the specified item at the specified index.
public : void InsertAt(unsigned int index, SetterBase value)This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
- index
- unsigned int UInt32 UInt32 UInt32
The index at which to set the value.
The value to set.
Remarks
InsertAt expands the collection and moves all subsequent index items by one. In contrast, SetAt replaces the item at the index, and the collection count remains the same.
Note
The equivalent Microsoft .NET API is Insert.
- See Also
RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)
Removes the System.Collections.Generic.IList`1 item at the specified index.
This member is not implemented in C++void RemoveAt(int index)Sub RemoveAt(index As Integer)void RemoveAt(int index)
- index
The zero-based index of the item to remove.
index is not a valid index in the System.Collections.Generic.IList`1.
The System.Collections.Generic.IList`1 is read-only.
RemoveAt(UInt32) RemoveAt(UInt32) RemoveAt(UInt32) RemoveAt(UInt32)
Removes the item at the specified index.
public : void RemoveAt(unsigned int index)This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
- index
- unsigned int UInt32 UInt32 UInt32
The index position of the item to remove.
Remarks
If successful, calling this method reduces the collection size by one. Items with index values greater than the called index have their index values reduced by one.
Note
The equivalent Microsoft .NET API is RemoveAt.
RemoveAtEnd() RemoveAtEnd() RemoveAtEnd() RemoveAtEnd()
Removes the last item in the collection.
public : void RemoveAtEnd()This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
Remarks
If successful, calling this method reduces the collection size by one.
ReplaceAll(SetterBase[]) ReplaceAll(SetterBase[]) ReplaceAll(SetterBase[]) ReplaceAll(SetterBase[])
Initially clears the collection, then inserts the provided array as new items.
public : void ReplaceAll(SetterBase[] items)This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
- items
- SetterBase[] SetterBase[] SetterBase[] SetterBase[]
The new collection items.
Remarks
For implementations that track a changed event, the initial reset fires an event, but the items added do not fire discrete per-item events.
SetAt(UInt32, SetterBase) SetAt(UInt32, SetterBase) SetAt(UInt32, SetterBase) SetAt(UInt32, SetterBase)
Sets the value at the specified index to the SetterBase value specified.
public : void SetAt(unsigned int index, SetterBase value)This member is not implemented in C#This member is not implemented in VB.Net// This API is not available in Javascript.
- index
- unsigned int UInt32 UInt32 UInt32
The index at which to set the value.
The value to set.
Remarks
InsertAt expands the collection and moves all subsequent index items by one. In contrast, SetAt replaces the item at the index, and the collection count remains the same.
Note
The equivalent Microsoft .NET API is Item (the indexer).
- See Also