Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw Control.Cells.

Returns the number of cells present in the cells collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of cells in a collection of cells.

Example

'Declares variables 
 Dim myCells As ChemDrawControl11Ctl.Cells
 Set myCells = ctlChemDraw.Selection.Objects.Cells

 Private Sub cmdCells_Click()
    'returns the application of the cells collection
     Text1.text = MyCells.Application
    'returns the number of cells in the cells collection
     Text2.text = MyCells.Count 
 End Sub

See Also