Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Creates a new window.
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 Function NewWindow As Window
public Window NewWindow()
Return Value
Type: Microsoft.Office.Interop.Excel.Window
Examples
The following code example uses the NewWindow method to create a new Excel application window that has the caption "This is a new window" and does not have gridlines.
This example is for a document-level customization.
Private Sub WorkbookNewWindow()
Dim newWindow As Excel.Window = Me.NewWindow()
newWindow.Caption = "This is a new Window"
newWindow.DisplayGridlines = False
End Sub
private void WorkbookNewWindow()
{
Excel.Window newWindow = this.NewWindow();
newWindow.Caption = "This is a new Window";
newWindow.DisplayGridlines = false;
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.