Share via


Legend.Application Property

When used without an object qualifier, this property returns an Application object that represents the Microsoft Word application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property Application As Application
    Get
'Usage
Dim instance As Legend
Dim value As Application

value = instance.Application
Application Application { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.Application

Examples

This example displays a message about the application that created myObject.

Set myObject = ActiveDocument

If myObject.Application.Value = "Microsoft Word" Then

    MsgBox "This is a Word Application object."

Else

    MsgBox "This is not a Word Application object."

End If

See Also

Reference

Legend Interface

Legend Members

Microsoft.Office.Interop.PowerPoint Namespace