Software Developer's Kit - ChemDraw

Send comments on this topic
StartChar Property
See Also 

Description

Member of ChemDraw Control.Style.

Sets and returns the offset to the first character of this style.

Property type

Read-write property

Syntax

Visual Basic
Public Property StartChar() As Long

Return Type

Long

Remarks

Sets and returns the offset to the first character to which this style applies (zero-based).

Example

'Declares a variable Style
 Dim vStyle As ChemDrawControl10Ctl.Style 
 Dim myCaption As ChemDrawControl10Ctl.Caption

'This example reads & writes data  
 Private Sub cmdCommand_Click()
     Set vStyle = ctlChemDraw.Styles.Item(1)
     Text1.text = myCaption.Styles.Item(1).StartChar 
     vStyle.StartChar = 20
     Text2.text = vStyle.StartChar 
 End Sub

See Also