[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Articles.ThreadArticleBeadCollection

Class ThreadArticleBeadCollection

Namespace
GrapeCity.Documents.Pdf.Articles
Assembly
GcDocs.Pdf.dll

Represents a collection of ArticleBead objects owned by an ArticleThread.

public class ThreadArticleBeadCollection : IList<ArticleBead>, ICollection<ArticleBead>, IEnumerable<ArticleBead>, IEnumerable
Inheritance
object
ThreadArticleBeadCollection
Implements
System.Collections.Generic.IList<T><ArticleBead>
System.Collections.Generic.ICollection<T><ArticleBead>
System.Collections.Generic.IEnumerable<T><ArticleBead>
System.Collections.IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Count

Gets the number of elements in the collection.

public int Count { get; }

Property Value

int

this[int]

Gets or sets the element at a specified index.

public ArticleBead this[int index] { get; set; }

Parameters

index int

The zero-based index of the element to get or set.

Property Value

ArticleBead

The element at the specified index.

Methods

Add(ArticleBead)

Adds an object to the end of the collection.

public void Add(ArticleBead item)

Parameters

item ArticleBead

The object to be added to the end of the collection.

Clear()

Removes all elements from the collection.

public void Clear()

Contains(ArticleBead)

Determines whether an element is in the collection.

public bool Contains(ArticleBead item)

Parameters

item ArticleBead

The object to locate in the collection.

Returns

bool

true if item is found in the collection; otherwise, false.

CopyTo(ArticleBead[], int)

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)

Parameters

array ArticleBead[]

The one-dimensional array that is the destination of the elements copied from the collection.

index int

The zero-based index in the array at which copying begins.

IndexOf(ArticleBead)

Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.

public int IndexOf(ArticleBead item)

Parameters

item ArticleBead

The object to locate in the collection.

Returns

int

The zero-based index of the first occurrence of item within the entire collection, if found; otherwise, -1.

Insert(int, ArticleBead)

Inserts an element into the collection at the specified index.

public void Insert(int index, ArticleBead item)

Parameters

index int

The zero-based index at which item should be inserted.

item ArticleBead

The object to insert.

Remove(ArticleBead)

Removes the first occurrence of a specific object from the collection.

public bool Remove(ArticleBead item)

Parameters

item ArticleBead

The object to remove from the collection.

Returns

bool

true if item was actually removed, false otherwise.

RemoveAt(int)

Removes the element at the specified index of the collection.

public void RemoveAt(int index)

Parameters

index int

The zero-based index of the element to remove.