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

Represents a collection of ColumnElement items used by the ExcelML export pipeline.

Definition

Namespace:Telerik.WinControls.UI.Export.ExcelML

Assembly:TelerikData.dll

Syntax:

C#
public class ColumnsCollection : IColumnsCollection, IList, ICollection, IEnumerable

Inheritance: objectColumnsCollection

Implements: ICollectionIColumnsCollectionIEnumerableIList

Constructors

Initializes a new instance of the ColumnsCollection class.

C#
public ColumnsCollection()

Initializes a new instance of the ColumnsCollection class with the specified backing list.

C#
public ColumnsCollection(IList list)
Parameters:listIList

The backing list used to store column elements.

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 column at the specified index.

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

The zero-based index of the column.

Property Value:

The column at the specified index.

Implements: IColumnsCollection.this[int]

Methods

Adds the specified column to the collection.

C#
public virtual int Add(ColumnElement value)
Parameters:valueColumnElement

The column to add.

Returns:

int

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

Implements: IColumnsCollection.Add(ColumnElement)

Removes all columns from the collection.

C#
public virtual void Clear()

Determines whether the specified column exists in the collection.

C#
public virtual bool Contains(ColumnElement value)
Parameters:valueColumnElement

The column to locate.

Returns:

bool

true if the column is found; otherwise, false.

Implements: IColumnsCollection.Contains(ColumnElement)

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

C#
public void CopyTo(ColumnElement[] array, int index)
Parameters:arrayColumnElement[]

The destination array.

indexint

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

Implements: IColumnsCollection.CopyTo(ColumnElement[], int)

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 column.

C#
public virtual int IndexOf(ColumnElement value)
Parameters:valueColumnElement

The column to locate.

Returns:

int

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

Implements: IColumnsCollection.IndexOf(ColumnElement)

Inserts a column at the specified index.

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

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

valueColumnElement

The column to insert.

Implements: IColumnsCollection.Insert(int, ColumnElement)

Removes the specified column from the collection.

C#
public virtual void Remove(ColumnElement value)
Parameters:valueColumnElement

The column to remove.

Implements: IColumnsCollection.Remove(ColumnElement)

Removes the column at the specified index.

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

The zero-based index of the column to remove.