Table of contents
TOC
Recolher sumário
Expandir sumário

Propriedade Style.Application (Visio)Style.Application Property (Visio)

office 365 dev account|Última Atualização: 22/03/2018
|
2 Colaboradores

Retorna a instância do Microsoft Visio que está associada a um objeto. Somente leitura.Returns the instance of Microsoft Visio that is associated with an object. Read-only.

SintaxeSyntax

expressão . Aplicativoexpression . Application

expressão Uma variável que representa um objeto Style .expression A variable that represents a Style object.

Valor retornadoReturn Value

ApplicationApplication

ExemploExample

O Microsoft Visual Basic for Applications (VBA) macro seguir obtém o objeto Application associado ao documento ativo e imprime o número de ID de processo na janela Immediate.The following Microsoft Visual Basic for Applications (VBA) macro gets the Application object associated with the active document and prints its process ID number in the Immediate window.


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
© 2018 Microsoft