Software Developer's Kit - ChemDraw

Send comments on this topic
CaptionLineHeight Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the line height used for captions

Property type

Read-write property

Syntax

Visual Basic
Public Property CaptionLineHeight() As Double

Return Type

Double

Remarks

Sets and returns the line height used for captions in points. For example: 0.05 (equivalent to 0.1668 inches). Another way to set line height is using Caption.LineHeight.

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.CaptionLineHeight - object is a caption
     vObject.Settings.CaptionLineHeight = Text1.text 

    'Displays the settings 
     Text2.text = myObject.Settings.CaptionLineHeight   
    'If object is a caption: 
     Text3.text = myObject.LineHeight  
 End Sub

See Also