Software Developer's Kit - ChemDraw

Send comments on this topic
Tables Collection
See Also  Members 

Description

Member of ChemDraw Control.

For a list of all members defined for this collection, see Tables Members.

ChemDraw Tables Collection contains all of the table objects in the document.

Object Model

Remarks

Tables is a collection containing all of the Tables objects in the ChemDraw document. If myTables is an Tables collection object:

MyTables.Application   returns the application associated with the Tables collection
MyTables.Count          returns the number of Tables in the collection
MyTables.Item(i)        given an index, references one Table in particular, enabling all the Table properties
MyTables.Parent         returns the parent of the Tables collection

Using myTables.Item(i) all the Table properties are enabled for Table(i). This index starts with 1. 

Example

'Declares variables 
 Dim myTables As ChemDrawControl11Ctl.Tables
 Set myTables = ctlChemDraw.Selection.Objects.Tables

 Private Sub cmdTables_Click()
    'returns the application of the Tables collection
     Text1.text = MyTables.Application
    'returns the number of Tables in the Tables collection
     Text2.text = MyTables.Count 
    'returns number of rows of Item(1) of the Tables collection 
     Text3.text = MyTables.Item(1).NumRows
 End Sub

See Also