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

Propriedade Validation.Application (Visio)Validation.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 Validation .expression A variable that represents a Validation object.

Valor de retornoReturn Value

AplicativoApplication

ExemploExample

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

Public Sub Application_Example() 

 Dim vsoApplication As Visio.Application 
 Dim vsoValidation As Validation 

 Set vsoValidation = ActiveDocument.Validation 

 'Get the instance of Visio associated with the Validation object. 
 Set vsoApplication = vsoValidation.Application 
 Debug.Print "The process ID of the Application object associated with the active document is: " &; vsoApplication.ProcessID 

End Sub
© 2018 Microsoft