WorksheetCollection
Worksheet collection
Definition
Namespace:Telerik.Web.UI.GridExcelBuilder
Assembly:Telerik.Web.UI.dll
Syntax:
public class WorksheetCollection : IWorksheetCollection, IList, ICollection, IEnumerable
Inheritance: objectWorksheetCollection
Implements:
Inherited Members
Constructors
Default constructor for the WorksheetCollection
public WorksheetCollection()
WorksheetCollection constructor that accepts list of worksheets
Properties
Gets the number of elements contained in the ICollection. (Inherited from ICollection.)
public virtual int Count { get; }
Gets a value indicating whether the collection has a fixed size.
public virtual bool IsFixedSize { get; }
Gets a value indicating whether the collection is read-only.
public virtual bool IsReadOnly { get; }
Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from ICollection.)
public virtual bool IsSynchronized { get; }
Gets an object that can be used to synchronize access to the ICollection. (Inherited from ICollection.)
public virtual object SyncRoot { get; }
Gets/sets the Worksheet element residing at the specified position
public virtual WorksheetElement this[int index] { get; set; }
Worksheet index
Property Value:WorksheetElement object
Implements:
Methods
Adds an item to the collection.
public virtual int Add(WorksheetElement value)
The object to add to the collection.
Returns:The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.
Implements:
Removes all items from the collection.
public virtual void Clear()
Determines whether the collection contains a specific value.
public virtual bool Contains(WorksheetElement value)
The object to locate in the collection.
Returns:true if the object is found in the collection; otherwise, false.
Implements:
Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection.)
public virtual void CopyTo(WorksheetElement[] array, int index)
The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.
indexintThe zero-based index in array at which copying begins.
Implements:
Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
public virtual IEnumerator GetEnumerator()
An IEnumerator object that can be used to iterate through the collection.
Determines the index of a specific item in the collection.
public virtual int IndexOf(WorksheetElement value)
The object to locate in the collection.
Returns:The index of value if found in the collection; otherwise, -1.
Implements:
Inserts an item to the collection at the specified index.
public virtual void Insert(int index, WorksheetElement value)
The zero-based index at which value should be inserted.
valueWorksheetElementThe object to insert into the collection.
Implements:
Removes the first occurrence of a specific object from the collection.
public virtual void Remove(WorksheetElement value)
The object to remove from the collection.
Implements:
Removes the collection item at the specified index.
public virtual void RemoveAt(int index)
The zero-based index of the item to remove.