class O2GTableColumnCollection

Parents
System.Collections.Generic.IEnumerable<O2GTableColumn>

Brief

The class provides access to the list of table columns.

Details

To get an instance of the class, use the O2GGenericTableResponseReader.Columns method. For example,

O2GTableColumnCollection columns = genericReader.Columns;

To get access to a particular column, use the indexator property of the class. For example,

O2GTableColumn column = columns.get(mColumnID);

To get access to every table column, call another implementation of the indexator property in a loop. For example,
for (int i = 0; i < columns.Count; i++)
{
O2GTableColumn column = columns;
}

Example

O2GTableColumnCollection [hide]

 private void UseGenericTableInterface(O2GGenericTableResponseReader genericReader)
 {
    O2GTableColumnCollection columns = genericReader.Columns;
    for (int k = 0; k < columns.Count; k++)
    {
        O2GTableColumn column = columns[k];
        //...
    }
 }

The type defined in the fxcore2.dll assembly. The namespace is fxcore2.

Public Properties

Count

Gets the number of columns in a table.

Item

Gets a column by its unique identifier.

Item

Gets a column by its index.

back