ListObject.Application, propriété

Obtient un Application qui représente soit l'application Microsoft Office Excel, soit le créateur de ListObject.

Espace de noms :  Microsoft.Office.Tools.Excel
Assembly :  Microsoft.Office.Tools.Excel (dans Microsoft.Office.Tools.Excel.dll)

Syntaxe

'Déclaration
ReadOnly Property Application As Application
Application Application { get; }

Valeur de propriété

Type : Microsoft.Office.Interop.Excel.Application
Application qui représente le créateur de ListObject.

Exemples

L'exemple de code suivant obtient le nom et la version de l'application que contient ListObject, et affiche ces informations dans un message.

Cet exemple illustre une personnalisation au niveau du document.

    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);
}

Sécurité .NET Framework

Voir aussi

Référence

ListObject Interface

Microsoft.Office.Tools.Excel, espace de noms