Software Developer's Kit - ChemDraw

Send comments on this topic
MolecularWeight Property
See Also 

Description

Member of ChemDrawControl.Objects.

Returns the molecular weight of the objects

Property type

Read-only property

Syntax

Visual Basic
Public Property MolecularWeight() As Double

Return Type

Double

Example

'Molecular Weight 
 
Dim
myObjects as ChemDrawControl10Ctl.Objects  
 Private Sub cmdCommand_Click() 
     'returns Enhanced Metafile suitable for StdPicture  
     Set MyObjects = ChemDrawControlCtl.Selection.Objects

     Text1.text = myObjects.ExactMass
 End Sub

See Also