ListObject.Application Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an Application that represents either the Microsoft Office Excel application or the creator of the ListObject.
public:
property Microsoft::Office::Interop::Excel::Application ^ Application { Microsoft::Office::Interop::Excel::Application ^ get(); };
public Microsoft.Office.Interop.Excel.Application Application { get; }
member this.Application : Microsoft.Office.Interop.Excel.Application
Public ReadOnly Property Application As Application
Property Value
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 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);
}
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