Software Developer's Kit - ChemDraw

Send comments on this topic
Text Property
See Also 

Description

Member of ChemDraw Control.Caption.

Sets and returns the text contained in this caption.

Property type

Read-write property

Syntax

Visual Basic
Public Property Text() As String

Return Type

String

Remarks

Sets and returns the text contained in the caption

Example

'Declares a variable Captions
 Dim vCaption As ChemDrawControl10Ctl.Caption

'This example reads data from a caption 
 Private Sub cmdCommand_Click()
     Set vCaption = ctlChemDraw.Captions.Item(1)
     Text1.text = vCaption.Text 
     vCaption.Text = "Caption 1" 
 End Sub

See Also