Count Property

Applies To:

Bonds collection


The number of bonds in the collection


short/Integer Bonds.Count


Read-only. Only counts explicit bonds.


The following Visual Basic example gets the bonds count:

Dim TotalBonds As Object 'Bonds collection
Dim BondCount As Integer 'Variable to store Bond count
Dim CurrentMolecule As Object 'Molecule object

Set TotalBonds = CurrentMolecule.Bonds 'Returns Bonds collection
BondCount = TotalBonds.Count  'Get bond count

'Code required to create Molecule is omitted.

See Also:

2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA