Software Developer's Kit - ChemDraw

Send comments on this topic
Item Method
See Also 
index

The location of an object in a collection, counted from the top, starting with 1.

Description

Member of ChemDraw Control.Tables.

Given an index, returns one table from the tables collection.

Syntax

Visual Basic
Public Function Item( _
   ByVal index As Long _
) As Table

Parameters

index

The location of an object in a collection, counted from the top, starting with 1.

Return Type

Remarks

The property Item, followed by an index allows referencing one table in particular from the tables collection. This enables all the table properties for the table referenced by item(i).

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