共用方式為


WorksheetBase.Application Property

Gets a Microsoft.Office.Interop.Excel.Application object that represents the Microsoft Office Excel application.

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

Syntax

'Declaration
Public ReadOnly Property Application As Application
public Application Application { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Application
A Microsoft.Office.Interop.Excel.Application that represents the Excel application.

Examples

The following code example uses the Application property to rearrange the application windows.

This example is for a document-level customization.

Private Sub TileApplicationWindows()
    Me.Application.Windows.Arrange(Excel.XlArrangeStyle.xlArrangeStyleTiled)
End Sub
private void TileApplicationWindows()
{
    this.Application.Windows.Arrange(Excel.XlArrangeStyle.xlArrangeStyleTiled);
}

.NET Framework Security

See Also

Reference

WorksheetBase Class

Microsoft.Office.Tools.Excel Namespace