Software Developer's Kit - ChemDraw

Send comments on this topic
Styles Property
See Also 


Member of ChemDraw Control.Caption.

Sets and returns the styles collection of this caption.

Property type

Read-write property


Visual Basic
Public Property Styles() As Styles

Return Type


Style refers to style of text i.e. font. Style properties are font color, font face, font family, font size and StartChar. These settings affect how captions and atom labels for the current document are drawn and formatted.


'Declares a variable Caption
 Dim vCaption As ChemDrawControl10Ctl.Caption 

'This example reads data from a caption 
 Private Sub cmdCommand_Click()
     Set vCaption = ctlChemDraw.Captions.Item(1)
     Text1.text = vCaption.Styles 
     vCaption.Styles = 
 End Sub

See Also