Programming Guide : 6. Working with Arrays, Table Fields, and Collections : Table Fields : TableField, ColumnField, and ProtoField Objects
 
Share this page                  
TableField, ColumnField, and ProtoField Objects
When you create a table field, OpenROAD initializes a TableField object for the table field and one ColumnField object for each column in the table field. The TableField object provides access to the following table field components:
Visual, such as the width of the outline around the table field
Operational, such as setting the input focus to a specific cell
Textual, such as the text of its title
The ColumnField objects give access to the following column field components:
Visual, such as the background color of its prototype field, ProtoField
Textual, such as the text of its title
Just as each table field and each column in the table field has an associated object, each cell in a table field also has an associated CellAttribute object. However, because of their negative impact on performance, CellAttributes are by default turned off when a table field is created. CellAttributes can be turned on explicitly with the HasCellAttributes property. Or they can be turned on implicitly by changing a single cell's attribute (see Individual Cells). They can be freed up by turning off HasCellAttributes, but this resets all attributes back to the protofield's attributes.
For more information about setting CellAttribute objects on, see How You Can Turn CellAttributes On. For more information about TableField, ColumnField, and CellAttribute objects, see the Language Reference Guide.