[]
Represents a collection of ArticleBead objects owned by an ArticleThread.
public class ThreadArticleBeadCollection : IList<ArticleBead>, ICollection<ArticleBead>, IEnumerable<ArticleBead>, IEnumerable
Gets the number of elements in the collection.
public int Count { get; }
Gets or sets the element at a specified index.
public ArticleBead this[int index] { get; set; }
index
intThe zero-based index of the element to get or set.
The element at the specified index.
Adds an object to the end of the collection.
public void Add(ArticleBead item)
item
ArticleBeadThe object to be added to the end of the collection.
Removes all elements from the collection.
public void Clear()
Determines whether an element is in the collection.
public bool Contains(ArticleBead item)
item
ArticleBeadThe object to locate in the collection.
true if item is found in the collection; otherwise, false.
Copies the entire collection into a one-dimensional array, starting at the specified index in the target array.
public void CopyTo(ArticleBead[] array, int index)
array
ArticleBead[]The one-dimensional array that is the destination of the elements copied from the collection.
index
intThe zero-based index in the array at which copying begins.
Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.
public int IndexOf(ArticleBead item)
item
ArticleBeadThe object to locate in the collection.
The zero-based index of the first occurrence of item within the entire collection, if found; otherwise, -1.
Inserts an element into the collection at the specified index.
public void Insert(int index, ArticleBead item)
index
intThe zero-based index at which item should be inserted.
item
ArticleBeadThe object to insert.
Removes the first occurrence of a specific object from the collection.
public bool Remove(ArticleBead item)
item
ArticleBeadThe object to remove from the collection.
true if item was actually removed, false otherwise.
Removes the element at the specified index of the collection.
public void RemoveAt(int index)
index
intThe zero-based index of the element to remove.