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

Represents a collection of CellElement items used by the HTML export pipeline.

Definition

Namespace:Telerik.WinControls.UI.Export.HTML

Assembly:TelerikData.dll

Syntax:

C#
public class CellsCollection : IList, ICollection, IEnumerable

Inheritance: objectCellsCollection

Implements: ICollectionIEnumerableIList

Constructors

Initializes a new instance of the CellsCollection class.

C#
public CellsCollection()

Properties

Gets the number of elements contained in the collection.

C#
public 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#
public bool IsSynchronized { get; }

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

C#
public object SyncRoot { get; }

Gets or sets the cell at the specified index.

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

The zero-based index of the cell.

Property Value:

The cell at the specified index.

Methods

Adds the specified cell to the collection.

C#
public virtual int Add(CellElement value)
Parameters:valueCellElement

The cell to add.

Returns:

int

The zero-based index at which the cell was added.

Removes all cells from the collection.

C#
public virtual void Clear()

Determines whether the specified cell exists in the collection.

C#
public virtual bool Contains(CellElement value)
Parameters:valueCellElement

The cell to locate.

Returns:

bool

true if the cell is found; otherwise, false.

Copies the elements of the collection to a typed array, starting at the specified index.

C#
public void CopyTo(CellElement[] array, int index)
Parameters:arrayCellElement[]

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#
public virtual IEnumerator GetEnumerator()
Returns:

IEnumerator

An enumerator for the collection.

Returns the zero-based index of the specified cell.

C#
public virtual int IndexOf(CellElement value)
Parameters:valueCellElement

The cell to locate.

Returns:

int

The zero-based index of the cell if found; otherwise, -1.

Inserts a cell at the specified index.

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

The zero-based index at which to insert the cell.

valueCellElement

The cell to insert.

Removes the specified cell from the collection.

C#
public virtual void Remove(CellElement value)
Parameters:valueCellElement

The cell to remove.

Removes the cell at the specified index.

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

The zero-based index of the cell to remove.