Documents Object

MaxIm.Documents is a collection of all open documents in MaxIm DL. It can only be accessed through the Application.Documents property.

A collection is a standard Microsoft COM object. Please refer to Microsoft documentation for more information. This collection is read-only, and thus implements only the standard Count and Item properties.

A typical code segment for accessing the Documents object in Visual Basic is as follows:

    Dim AllDocs As MaxIm.Documents

    Set TheApp = New MaxIm.Application

    Set AllDocs = TheApp.Documents

    For I = 1 To AllDocs.Count

        List1.AddItem AllDocs.Item(I).DisplayName

    Next I

 

In this example, List1 is a list box.