New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Collection of ExcelML elements

Definition

Namespace:Telerik.Web.UI.GridExcelBuilder.Abstract

Assembly:Telerik.Web.UI.dll

Syntax:

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

Inheritance: objectElementsCollection

Implements: ICollectionIElementsCollectionIEnumerableIList

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Default constructor for the elements collection

C#
public ElementsCollection()

Properties

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; }
C#
protected virtual bool IsSynchronized { get; }
C#
protected virtual object SyncRoot { get; }

Returns the item at the specified position

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

Item index

Implements: IElementsCollection.this[int]

Methods

Add element to the collection

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

Element to be added to the collection

Returns:

int

The position into which the new element was inserted

Implements: IElementsCollection.Add(IElement)

Removes all items

C#
public virtual void Clear()

Determines whether the collection contains a specific value.

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

The object to locate in the collection.

Returns:

bool

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

Implements: IElementsCollection.Contains(IElement)

C#
protected virtual void CopyTo(Array array, int index)
Parameters:arrayArrayindexint
C#
protected virtual IEnumerator GetEnumerator()
Returns:

IEnumerator

etermines the index of a specific item in the IList.

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

The object to locate in the collection.

Returns:

int

The index of value if found in the collection; otherwise, -1.

Implements: IElementsCollection.IndexOf(IElement)

Inserts an item to the collection at the specified index.

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

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

valueIElement

The object to insert into the collection.

Implements: IElementsCollection.Insert(int, IElement)

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

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

The object to remove from the collection.

Implements: IElementsCollection.Remove(IElement)

Removes the item at the specified index.

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

The zero-based index of the item to remove.