Class CarouselImageCollection
Class for CarouselImageCollection.
Inheritance
Implements
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class CarouselImageCollection : Object, IList<CarouselImage>, ICollection<CarouselImage>, IEnumerable<CarouselImage>, IEnumerable, IList, ICollection
Properties
Count
Gets the number of elements contained in the collection.
Declaration
public int Count { get; }
Property Value
| Type |
|---|
| System.Int32 |
Item[Int32]
Gets or sets the element at the specified index.
Declaration
public CarouselImage this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index of the element to get or set. |
Property Value
| Type | Description |
|---|---|
| CarouselImage | The element at the specified index. |
Methods
Add(CarouselImage)
Adds an item to the collection.
Declaration
public void Add(CarouselImage item)
Parameters
| Type | Name | Description |
|---|---|---|
| CarouselImage | item | The item which is added to the collection. |
AsEnumerable()
Returns the CarouselImageList.
Declaration
public IEnumerable<CarouselImage> AsEnumerable()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<CarouselImage> | CarouselImageList |
Clear()
Removes all items from the collection.
Declaration
public void Clear()
Contains(CarouselImage)
Determines whether the collection contains a specific value.
Declaration
public bool Contains(CarouselImage item)
Parameters
| Type | Name | Description |
|---|---|---|
| CarouselImage | item | The object to locate in the collection. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the item is found in the collection, otherwise false. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<CarouselImage> GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerator<CarouselImage> | An IEnumerator object that can be used to iterate through the collection. |
IndexOf(CarouselImage)
Determines the index of the specific item in the list.
Declaration
public int IndexOf(CarouselImage item)
Parameters
| Type | Name | Description |
|---|---|---|
| CarouselImage | item | The object to locate in the list. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The index of the item if it is found in the list, otherwise -1. |
Insert(Int32, CarouselImage)
Inserts an item to the list at the specified index.
Declaration
public void Insert(int index, CarouselImage item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which item should be inserted. |
| CarouselImage | item | The object to insert into the list. |
Remove(CarouselImage)
Removes the first occurrence of a specific object from the collection.
Declaration
public bool Remove(CarouselImage item)
Parameters
| Type | Name | Description |
|---|---|---|
| CarouselImage | item | The object to remove from the collection. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the item was successfully removed from the colleection, otherwise false. This method also returns false if the item is not found in the original collection. |
RemoveAt(Int32)
Removes the item at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index of the item to remove. |
Sort()
Sorts the items in the collection
Declaration
public void Sort()
Sort(IComparer<CarouselImage>)
Sorts the items in the collection using the provided comparer.
Declaration
public void Sort(IComparer<CarouselImage> comparer)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IComparer<CarouselImage> | comparer | The comparer used to compare items. |