Software Developer's Kit - ChemDraw

Send comments on this topic
Extension Property
See Also 

Description

Member of ChemDraw Control.DataType.

Returns the extension associated with the data type.

Property type

Read-only property

Syntax

Visual Basic
Public Property Extension() As String

Return Type

String

Example

 Dim myDataType As DataType, i As Integer, s As String
 Debug.Print "Exportable types are: "
 For  Each myDataType In ChemDrawCtl1.ExportDataTypes  
      s = myDataType.MIME   
      'DataType.Extension 
      If  myDataType.Extension <> "" Then
          s = s & " (" & myDataType.Extension & ")"

          chr$(13)
      End If
      Debug.Print vbTab & s
 Next myDataType

See Also