Class Int32Collection
Represents a collection of Int32 values.
Inherited Members
Namespace: Telerik.Windows.Media
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public sealed class Int32Collection : Freezable, INotifyPropertyChanged, IList<int>, ICollection<int>, IEnumerable<int>, IEnumerable
Constructors
Int32Collection()
Initializes a new instance of the Int32Collection class.
Declaration
public Int32Collection()
Int32Collection(IEnumerable<Int32>)
Initializes a new instance of the Int32Collection class using the specified collection.
Declaration
public Int32Collection(IEnumerable<int> collection)
Parameters
System.Collections.Generic.IEnumerable<System.Int32>
collection
Collection with which to instantiate the Int32Collection. |
Int32Collection(Int32)
Initializes a new instance of the Int32Collection class with the specified capacity.
Declaration
public Int32Collection(int capacity)
Parameters
System.Int32
capacity
Integer that specifies the capacity of the collection. |
Properties
Count
Gets the number of int objects contained in the Int32Collection.
Declaration
public int Count { get; }
Property Value
System.Int32
|
Item[Int32]
Gets or sets the int at the specified zero-based index.
Declaration
public int this[int index] { get; set; }
Parameters
System.Int32
index
The zero-based index of the int object to get or set. |
Property Value
System.Int32
The item at the specified index. |
Methods
Add(Int32)
Adds a int object to the end of the Int32Collection.
Declaration
public void Add(int item)
Parameters
System.Int32
item
Item to add to the end of this collection. |
Clear()
Removes all the items from this Int32Collection.
Declaration
public void Clear()
Contains(Int32)
Determines whether the specified int is in this Int32Collection.
Declaration
public bool Contains(int item)
Parameters
System.Int32
item
The item to locate in this collection. |
Returns
System.Boolean
true if value, the specified int, is in this Int32Collection; otherwise, false. |
CopyTo(Int32[], Int32)
Copies the items of this Int32Collection, starting with the specified index value, into an array of int objects.
Declaration
public void CopyTo(int[] array, int arrayIndex)
Parameters
System.Int32[]
array
The array that is the destination of the items copied from this Int32Collection. |
System.Int32
arrayIndex
The index at which copying begins. |
GetEnumerator()
Returns an enumerator that can iterate through the collection.
Declaration
public IEnumerator<int> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<System.Int32>
An enumerator that can iterate through the collection. |
IndexOf(Int32)
Gets the index position of the first occurrence of the specified int.
Declaration
public int IndexOf(int item)
Parameters
System.Int32
item
The int to search for. |
Returns
System.Int32
The index position of the specified int. |
Insert(Int32, Int32)
Inserts a int into this Int32Collection at the specified index position.
Declaration
public void Insert(int index, int item)
Parameters
System.Int32
index
The index position at which to insert the specified int. |
System.Int32
item
The int to insert. |
Parse(String)
Converts a String representation of the Int32Collection into the equivalent Int32Collection class.
Declaration
public static Int32Collection Parse(string source)
Parameters
System.String
source
The String representation of the Int32Collection class. |
Returns
Int32Collection
The equivalent Int32Collection class. |
Remove(Int32)
Removes the first occurrence of the specified int from the Int32Collection.
Declaration
public bool Remove(int item)
Parameters
System.Int32
item
The int to remove from this collection. |
Returns
System.Boolean
|
RemoveAt(Int32)
Removes the int at the specified index position from the Int32Collection.
Declaration
public void RemoveAt(int index)
Parameters
System.Int32
index
The index position of the int to remove. |
ToString()
Creates a String representation of this Int32Collection structure.
Declaration
public override string ToString()
Returns
System.String
A String containing the int structures in the collection. |
ToString(IFormatProvider)
Creates a String representation of this Int32Collection.
Declaration
public string ToString(IFormatProvider provider)
Parameters
System.IFormatProvider
provider
The culture-specific formatting information. |
Returns
System.String
A String containing the int structures in the collection. |