Strokes.Count - свойство
Обновлен: Ноябрь 2007
Gets the number of Stroke objects contained in the Strokes collection.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public ReadOnly Property Count As Integer
'Применение
Dim instance As Strokes
Dim value As Integer
value = instance.Count
public int Count { get; }
public:
virtual property int Count {
int get () sealed;
}
/** @property */
public final int get_Count()
public final function get Count () : int
Значение свойства
Тип: System.Int32
The number of Stroke objects contained in the Strokes collection.
Реализации
Примеры
This example gets the number of Stroke objects contained within a Strokes collection, and updates a the text of label with that count.
' Access to the Strokes property returns a copy of the Strokes object
' This copy must be implicitly (via using statement) or explicitly
' disposed of in order to avoid a memory leak
Using S As Strokes = mInkOverlay.Ink.Strokes
Dim sCount As Integer = S.Count
labelNumStrokes.Text = sCount.ToString()
End Using
// Access to the Strokes property returns a copy of the Strokes object.
// This copy must be implicitly (via using statement) or explicitly
// disposed of in order to avoid a memory leak.
using (Strokes S = mInkOverlay.Ink.Strokes)
{
int sCount = S.Count;
labelNumStrokes.Text = sCount.ToString();
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
Microsoft.Ink - пространство имен