Software Developer's Kit - ChemDraw

Send comments on this topic
OriginFraction Property
See Also 

Description

Member of ChemDraw Control.TLCPlate.

Sets and returns the positioning of the origin of the TLC plate

Property type

Read-write property

Syntax

Visual Basic
Public Property OriginFraction() As Double

Return Type

Double

Remarks

Sets and returns the positioning of the origin, as a decimal fraction of the distance from the bottom to the top of the TLC plate, therefore, 0.5 will correspond to half the distance from the bottom to the top of the TLCPlate.

Example

'Example of TLCPlate.OriginFraction 
 Private Sub cmdOriginFraction_Click()
     If  myTLCPlate.OriginFraction <= 1 Then
         myTLCPlate.OriginFraction = myTLCPlate.OriginFraction + 0.1
     Else
         myTLCPlate.OriginFraction = myTLCPlate.OriginFraction - 0.1
     End If
     Text1.Text = myTLCPlate.OriginFraction 
     myTLCPlate.OriginFraction = 0.3
 End Sub

See Also