• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class TableColumnCollection

A typed collection of TableColumn objects on a TableShape. Provides Add, Insert, Remove, Clear, and indexer access.

Inheritance
object
TableColumnCollection
Implements
IList<TableColumn>
ICollection<TableColumn>
IEnumerable<TableColumn>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Presentation.Drawing
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
Type Description
int

IsReadOnly

Gets a value indicating whether the collection is read-only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
bool

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
Type Description
TableColumn

Methods

Add(TableColumn)

Adds the specified column to the end of the collection.

Declaration
public void Add(TableColumn item)
Parameters
Type Name Description
TableColumn item

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
Type Description
TableColumn

Clear()

Removes all columns from the collection.

Declaration
public void Clear()

Contains(TableColumn)

Determines whether the collection contains the specified column.

Declaration
public bool Contains(TableColumn item)
Parameters
Type Name Description
TableColumn item
Returns
Type Description
bool

CopyTo(TableColumn[], int)

Copies the columns to an array starting at the specified index.

Declaration
public void CopyTo(TableColumn[] array, int arrayIndex)
Parameters
Type Name Description
TableColumn[] array
int arrayIndex

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<TableColumn> GetEnumerator()
Returns
Type Description
IEnumerator<TableColumn>

IndexOf(TableColumn)

Returns the index of the specified column, or -1 if not found.

Declaration
public int IndexOf(TableColumn item)
Parameters
Type Name Description
TableColumn item
Returns
Type Description
int

Insert(int, TableColumn)

Inserts a column at the specified index.

Declaration
public void Insert(int index, TableColumn item)
Parameters
Type Name Description
int index
TableColumn item

Remove(TableColumn)

Removes the first occurrence of the specified column.

Declaration
public bool Remove(TableColumn item)
Parameters
Type Name Description
TableColumn item
Returns
Type Description
bool

RemoveAt(int)

Removes the column at the specified index.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
int index

Implements

IList<T>
ICollection<T>
IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX