JadeTableSheet Class

The JadeTableSheet class provides access to an internally created sheet object that you can use to directly reference the properties and methods of the table sheet. This object is created on the first call to the Table class accessSheet method for each Table control. Using instances of the JadeTableSheet class is equivalent to setting the accessMode property of the Table control to the Table.AccessMode_Sheet value without having to set the Table control sheet property.

One JadeTableSheet object only is created, which is a proxy object that holds the last reference to the sheet that was last accessed.

Accessing a sheet by using the Table class accessSheet method sets the accessedSheet property in the Table class, allowing subsequent access to that table sheet.

The following code fragment shows an example of these methods.

table1.accessSheet(1).caption     := "Company";
table1.accessedSheet.columns      := 5;
table1.accessedSheet.fixedColumns := 0;
table1.accessSheet(2).caption     := "Group";
table1.accessedSheet.columns      := 3;

Storing a reference to a returned sheet causes problems unless you take a copy of that sheet, as there is one sheet object only. (Your logic must delete the cloned sheet.)

For details about the properties and methods defined in the JadeTableSheet class, see "JadeTableSheet Properties" and "JadeTableSheet Methods", in the following subsections. For details about the table control and the constants, properties, methods, and events that it provides, see "Table Class", in Chapter 2.

JadeTableElement

(None)