EventList.Application-Eigenschaft (Visio)

Gibt die Microsoft Visio-Instanz zurück, die einem Objekt zugeordnet ist. Schreibgeschützt.

Syntax

Ausdruck. Anwendung

Ausdruck Eine Variable, die ein EventList-Objekt darstellt.

Rückgabewert

Application

Beispiel

Das folgende VBA-Makro (Microsoft Visual Basic für Applikationen) ruft das Application-Objekt ab, das dem aktiven Dokument zugeordnet ist, und druckt die Prozess-ID-Nummer im Direktfenster.

 
Public Sub Application_Example() 
 
 Dim vsoApplication As Visio.Application 
 Dim vsoDocument As Visio.Document 
 
 Set vsoDocument = ActiveDocument 
 
 'Get the instance of Visio associated with the Document object. 
 Set vsoApplication = vsoDocument.Application 
 Debug.Print "The process ID of the Application object associated with the active document is: " & vsoApplication.ProcessID 
 
End Sub

Support und Feedback

Haben Sie Fragen oder Feedback zu Office VBA oder zu dieser Dokumentation? Unter Office VBA-Support und Feedback finden Sie Hilfestellung zu den Möglichkeiten, wie Sie Support erhalten und Feedback abgeben können.