Share via


ListObject.Application Property (2007 System)

Gets an Application that represents either the Microsoft Office Excel application or the creator of the ListObject.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Application As Application
'Usage
Dim instance As ListObject 
Dim value As Application 

value = instance.Application
[BrowsableAttribute(false)]
public Application Application { get; }
[BrowsableAttribute(false)]
public:
property Application^ Application {
    Application^ get ();
}
public function get Application () : Application

Property Value

Type: Application
An Application that represents the creator of the ListObject.

Examples

The following code example gets the name and version of the application that contains the ListObject and displays the information in a message box.

This example is for a document-level customization.

Private Sub ListObject_Application()
    Dim List1 As Microsoft.Office.Tools.Excel.ListObject = _
        Me.Controls.AddListObject(Me.Range("A1", "B2"), "List1")
    Dim applicationVersion As String = List1.Application.Name & _
        " " & List1.Application.Version
    MessageBox.Show(applicationVersion)

End Sub
private void ListObject_Application()
{
    Microsoft.Office.Tools.Excel.ListObject list1 =
        this.Controls.AddListObject(this.Range["A1", "B2"],
        "list1");
    string applicationVersion = list1.Application.Name +
        " " + list1.Application.Version;
    MessageBox.Show(applicationVersion);
}

.NET Framework Security

See Also

Reference

ListObject Class

ListObject Members

Microsoft.Office.Tools.Excel Namespace