Freigeben über


Windows2.Count Property

Definition

Gets a value indicating the number of objects in the Windows2 collection.

public:
 property int Count { int get(); };
public:
 property int Count { int get(); };
[System.Runtime.InteropServices.DispId(201)]
public int Count { [System.Runtime.InteropServices.DispId(201)] get; }
[<System.Runtime.InteropServices.DispId(201)>]
[<get: System.Runtime.InteropServices.DispId(201)>]
member this.Count : int
Public ReadOnly Property Count As Integer

Property Value

An integer containing the number of objects in the Windows2 collection.

Implements

Attributes

Examples

This example creates a Windows2 object and displays the number of windows in the collection.

Imports EnvDTE  
Imports EnvDTE80  
Sub CountWindowsExample(ByVal dte As DTE2)  
    Dim wins As Windows2  
    wins = CType(_applicationObject.Windows, EnvDTE80.Windows2)  
    MsgBox("The number of windows in the Windows2 collection is: " _  
 & wins.Count)  
End Sub  
using EnvDTE;  
using EnvDTE80;  
using System.Windows.Forms;  
public void CountWindowsExample(DTE2 dte)  
{  
    Windows2 wins;  
    wins = (EnvDTE80.Windows2)_applicationObject.Windows;  
    MessageBox.Show("The number of windows in the Windows2  
 collection is: " + wins.Count);  
}  

Applies to