Software Developer's Kit - ChemDraw

Send comments on this topic
Family Property
See Also 

Description

Member of ChemDraw Control.Style.

Sets and returns the font family associated with this style.

Property type

Read-write property

Syntax

Visual Basic
Public Property Family() As String

Return Type

String

Remarks

Sets the font family associated with this style (Times New Roman, Arial, etc).

Example

'Declares a variable Style
 Dim myStyle As ChemDrawControl10Ctl.Style

'This example reads data from a Style 
 Private Sub cmdCommand_Click()
     Set myStyle = ctlChemDraw.Styles.Item(1)
     Text1.text = myStyle.Family 
     myStyle.Family = "Courier New"
     Text2.Text = myStyle.Family
 End Sub

See Also