Previous Document Next Document
Application.Documents

Property Documents As Documents

Member of Application

The Documents property returns the collection of all open documents in the application.

The Documents property returns a read-only value.

The following code example checks for open documents. If a document is open, text is added and if there is no open document, a message displays in a message box.

Sub ApplicationDocument() 
 If Documents.Count > 0 Then 
  ActiveLayer.CreateArtisticText 0, 0, "Text" 
 Else 
  MsgBox " There is no document open." 
 End If 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.