Software Developer's Kit - ChemDraw

Send comments on this topic
Family Property
See Also 

Description

Member of ChemDraw Control.Caption.

Sets and returns the font family associated with theis caption.

Property type

Read-write property

Syntax

Visual Basic
Public Property Family() As String

Return Type

String

Remarks

This property returns the font family, for example "arial".

Example

'Declares a variable caption
 Dim myCaption As ChemDrawControl10Ctl.Caption

'This example reads data from a caption 
 Private Sub cmdCommand_Click()
     Set myCaption = ctlChemDraw.Captions.Item(1)
     Text1.text = myCaption.Family 
     myCaption.Family = "Courier New"
     'Another way to set the caption family is:
     myCaption.Settings.Font = "Courier New" 
     Text2.Text = myCaption.CaptionFace
     Text3.Text = myCaption.Settings.CaptionFont 
 End Sub

See Also