Software Developer's Kit - ChemDraw

Send comments on this topic
Cells Property
See Also 


Member of ChemDraw Control.Table.

Returns the cells of the table (from left to right, top to bottom).

Property type

Read-only property


Visual Basic
Public Property Cells() As Cells

Return Type


This property returns the collection of cells of this table. If myCells is a Cells collection object: 

MyCells.Application   returns the application associated with the cells collection
MyCells.Count          returns the number of cells in the collection
MyCells.Item(i)        given an index, references one cell in particular
MyCells.Parent         returns the parent of the cells collection

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


'Declares variable vTable
 Dim vTable As ChemDrawControl10Ctl.Table
'Checks that there is a Table loaded in the variable
 If  Selection.Tables.Count < 1 Then
     Exit Sub
 End If
 Private Sub cmdCommand_Click() 
    'Returns the number of cells in vTable 
     Text1.text = vTable.Cells.Count
 End Sub

See Also