Class TableColumnCollection
A typed collection of TableColumn objects on a
TableShape. Provides Add, Insert,
Remove, Clear, and indexer access.
Inheritance
TableColumnCollection
Assembly: DRIT.Presentation.dll
Syntax
public class TableColumnCollection : IList<TableColumn>, ICollection<TableColumn>, IEnumerable<TableColumn>, IEnumerable
Properties
Count
Gets the number of columns in the collection.
Declaration
public int Count { get; }
Property Value
IsReadOnly
Gets a value indicating whether the collection is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
this[int]
Gets or sets the column at the specified index.
Declaration
public TableColumn this[int index] { get; set; }
Parameters
| Type |
Name |
Description |
| int |
index |
|
Property Value
Methods
Add(TableColumn)
Adds the specified column to the end of the collection.
Declaration
public void Add(TableColumn item)
Parameters
Add(double)
Adds a new column with the specified width to the end of the collection.
Declaration
public TableColumn Add(double widthEmu)
Parameters
| Type |
Name |
Description |
| double |
widthEmu |
Column width in EMU.
|
Returns
Clear()
Removes all columns from the collection.
Declaration
Contains(TableColumn)
Determines whether the collection contains the specified column.
Declaration
public bool Contains(TableColumn item)
Parameters
Returns
CopyTo(TableColumn[], int)
Copies the columns to an array starting at the specified index.
Declaration
public void CopyTo(TableColumn[] array, int arrayIndex)
Parameters
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<TableColumn> GetEnumerator()
Returns
IndexOf(TableColumn)
Returns the index of the specified column, or -1 if not found.
Declaration
public int IndexOf(TableColumn item)
Parameters
Returns
Insert(int, TableColumn)
Inserts a column at the specified index.
Declaration
public void Insert(int index, TableColumn item)
Parameters
Remove(TableColumn)
Removes the first occurrence of the specified column.
Declaration
public bool Remove(TableColumn item)
Parameters
Returns
RemoveAt(int)
Removes the column at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type |
Name |
Description |
| int |
index |
|
Implements