Software Developer's Kit - ChemDraw

Send comments on this topic
NumColumns Property
See Also 

Description

Member of ChemDraw Control.Table.

Returns the number of columns.

Property type

Read-only property

Syntax

Visual Basic
Public Property NumColumns() As Long

Return Type

Long

Remarks

Returns the number of columns in this table.

Example

'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 columns in vTable 
     Text1.text = MyTable.NumColumns
 End Sub

See Also