Software Developer's Kit - ChemDraw

Send comments on this topic
Text Property
See Also 

Description

Member of ChemDraw Control.SGProperty.

Returns the ObjectTag that displays the property data of this stoichiometry grid property.

Property type

Read-only property

Syntax

Visual Basic
Public Property Text() As ObjectTag

Return Type

Remarks

An ObjectTag allows the user to attach an arbitrary piece of information to any ChemDraw object. This information can later be retrieved. ObjectTags are primarily tools for users to build their applications with.

The value of an ObjectTag can be a string of characters, a floating point number, or an integer number.  Those values are set or retrieved by the StringValue, DoubleValue and LongValue properties. 

Example

'text 
 Private Sub cmdCommand_Click()
     Set myText = ctlChemDraw.Objects.StoichiometryGrids.Item(1). _
                  Components.Item(1).Properties.Item(1).Text
     Text1.text = myText 
     myText = "example" 
 End Sub

See Also