New to Telerik UI for WinForms? Start a free 30-day trial

Represents a strongly typed collection of ExcelML export elements.

Definition

Namespace:Telerik.WinControls.UI.Export.ExcelML

Assembly:TelerikData.dll

Syntax:

C#
public class ElementsCollection : IElementsCollection, IList, ICollection, IEnumerable

Inheritance: objectElementsCollection

Implements: ICollectionIElementsCollectionIEnumerableIList

Constructors

Initializes a new instance of the ElementsCollection class.

C#
public ElementsCollection()

Properties

Gets the number of elements in the collection.

C#
protected virtual int Count { get; }

Gets a value indicating whether the collection has a fixed size.

C#
public virtual bool IsFixedSize { get; }

Gets a value indicating whether the collection is read-only.

C#
public virtual bool IsReadOnly { get; }

Gets a value indicating whether access to the collection is synchronized.

C#
protected virtual bool IsSynchronized { get; }

Gets an object that can be used to synchronize access to the collection.

C#
protected virtual object SyncRoot { get; }

Gets or sets the element at the specified index.

C#
public virtual IElement this[int index] { get; set; }
Parameters:indexint

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

Property Value:

The element at the specified index.

Implements: IElementsCollection.this[int]

Methods

Adds an element to the collection.

C#
public virtual int Add(IElement value)
Parameters:valueIElement

The element to add.

Returns:

int

The zero-based index at which the element is inserted.

Implements: IElementsCollection.Add(IElement)

Removes all elements from the collection.

C#
public virtual void Clear()

Determines whether the collection contains the specified element.

C#
public virtual bool Contains(IElement value)
Parameters:valueIElement

The element to locate.

Returns:

bool

true if the element is found; otherwise, false.

Implements: IElementsCollection.Contains(IElement)

Copies the elements to an array, starting at the specified index.

C#
protected virtual void CopyTo(Array array, int index)
Parameters:arrayArray

The destination array.

indexint

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

Returns an enumerator that iterates through the collection.

C#
protected virtual IEnumerator GetEnumerator()
Returns:

IEnumerator

An enumerator for the collection.

Returns the zero-based index of the specified element.

C#
public virtual int IndexOf(IElement value)
Parameters:valueIElement

The element to locate.

Returns:

int

The zero-based index of the element, or -1 if it is not found.

Implements: IElementsCollection.IndexOf(IElement)

Inserts an element at the specified index.

C#
public virtual void Insert(int index, IElement value)
Parameters:indexint

The zero-based index at which the element is inserted.

valueIElement

The element to insert.

Implements: IElementsCollection.Insert(int, IElement)

Removes the specified element from the collection.

C#
public virtual void Remove(IElement value)
Parameters:valueIElement

The element to remove.

Implements: IElementsCollection.Remove(IElement)

Removes the element at the specified index.

C#
public virtual void RemoveAt(int index)
Parameters:indexint

The zero-based index of the element to remove.