Software Developer's Kit - ChemDraw

Send comments on this topic
CaptionSize Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the font size of captions

Property type

Read-write property

Syntax

Visual Basic
Public Property CaptionSize() As Double

Return Type

Double

Remarks

The size of the caption is expressed in points. Another way to set the size of the caption is using Caption.Size.

Example

'Declares variable vObject
 Dim vObject As ChemDrawControl10Ctl.Object
'Checks that there is an Object loaded the variable
 If  Selection.Object.Count < 1 Then
     Exit Sub
 End If

 Private Sub cmdSettings_click() 
    'Sets the Settings.CaptionSize 
     vObject.Settings.CaptionSize = Text1.text 

    'Displays the settings 
     Text2.text = vObject.Settings.CaptionSize   
    'If object is a caption: 
     Text3.text = vObject.Size
 End Sub

See Also