Windows2.Count Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Koleksiyondaki nesne sayısını gösteren bir değer alır Windows2 .
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
Özellik Değeri
Koleksiyondaki nesne sayısını içeren bir tamsayı Windows2 .
Uygulamalar
- Öznitelikler
Örnekler
Bu örnek, bir Windows2 nesnesi oluşturur ve koleksiyondaki pencerelerin sayısını görüntüler.
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);
}