Compartilhar via


Window.WindowNumber Property

Returns the window number. For example, a window named "Book1.xls:2" has 2 as its window number. Most windows have the window number 1.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property WindowNumber As Integer
    Get
'Usage
Dim instance As Window
Dim value As Integer

value = instance.WindowNumber
int WindowNumber { get; }

Property Value

Type: System.Int32

Remarks

The window number isn't the same as the window index (the return value of the Index property), which is the position of the window within the Windows collection.

See Also

Reference

Window Interface

Window Members

Microsoft.Office.Interop.Excel Namespace