Documents

www.altova.com Imprimer cette rubrique Page précédente Un niveau supérieur Page suivante

Accueil >  Programmers' Reference > Application API > Interfaces >

Documents

See also

 

Properties

Count

Item

 

Methods

NewAuthenticFile

NewFile

NewFileFromText

OpenAuthenticFile

OpenFile

OpenURL

OpenURLDialog

 

 

Description

This object represents the set of documents currently open in Authentic Desktop. Use this object to open further documents or iterate through already opened documents.

 

Examples

' ---------------------------------------

' XMLSpy scripting environment - VBScript

' iterate through open documents

' ---------------------------------------

Dim objDocuments

Set objDocuments = Application.Documents

 

For Each objDoc In objDocuments

 'do something useful with your document

 objDoc.SetActiveDocument()

Next

 

// ---------------------------------------

// XMLSpy scripting environment - JScript

// close all open documents

// ---------------------------------------

for (var iter = new Enumerator (Application.Documents);

    ! iter.atEnd();

    iter.moveNext())

{

 // MsgBox ("Closing file " + iter.item().Name);

 iter.item().Close (true);

}


© 2019 Altova GmbH