Software Developer's Kit - ChemDraw

Send comments on this topic
Visible Property
See Also 

Description

Member of ChemDraw Control.TLCSpot.

Sets and returns whether this TLCSpot is visible or not.

Property type

Read-write property

Syntax

Visual Basic
Public Property Visible() As Boolean

Return Type

Boolean
Boolean

Remarks

When this property returns True, it indicates that the object is visible.

Example

'Example of TLC Plate, Lanes & Spot
 Private Sub cmdAddLane_Click()
     Dim MyTLCspot As TLCSpot
     Dim MyTLCLane As TLCLane
     myTLCPlate.AddLane MyLane
     myTLCPlate.Lanes(myTLCPlate.Lanes.Count).AddSpot MyTLCspot 
     MyTLCspot.Bold = True
     MyTLCspot.Color = vbGreen
     MyTLCspot.Dashed = False 
     MyTLCspot.Filled = True
     myTLCspot.Height = 0.4
     Text1.Text = MyTLCspot.ID
     MyTLCspot.Rf = 0.5 
     Text2.Text = MyTLCspot.RfTag 
     MyTLCspot.ShowRf = True
     MyTLCspot.Spacing = 0.1
     MyTLCspot.Tail = 0.5 
     MyTLCspot.Visible = True 
     MyTLCspot.Width = 0.4
 End Sub


'Declares variable vObject - Object can be any ChemDraw object
 Dim vObject As ChemDrawControl10Ctl.object
'Checks that there is an object loaded in the variable
 If  Selection.Objects.Count < 1  
     Exit Sub
 End If
 Private Sub cmdVisible_Click()
    'Toggles the visible property
     If  vObject.Visible = True Then
         vObject.Visible = False
     Else
        vObject.Visible = True 
     End If
 End Sub

See Also