Software Developer's Kit - ChemDraw

Send comments on this topic
Files Property
See Also 

Description

Member of ChemDraw Control.DataObject.

Returns the DataObjectFiles collection for a DataObject.

Property type

Read-only property

Syntax

Visual Basic
Public Property Files() As DataObjectFiles

Return Type

Remarks

Returns the DataObjectFiles collection for a DataObject.  A DataObjectFiles collection object is a standard collection object which holds a collection of file names (used by the vbCCFiles format) for the DataObject object.

Example

'Declares variables 
 Dim myDataObjectFiles As ChemDrawControl11Ctl.DataObjectFiles
 Set myDataObjectFiles = ctlChemDraw.Selection.Objects.DataObject.Files

 Private Sub cmdDataObjectFiles_Click()
    'returns the number of Data Object Files in the collection
     Text1.text = MyDataObject.Files.Count 
    'returns extension of Item(1) of the DataObject.Files collection 
     Text2.text = MyDataObject.Files.Item(1).Extension
 End Sub

See Also