Strokes.Count 屬性
命名空間: 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
Strokes 集合內含的 Stroke 物件數目。
實作
範例
這個範例會取得 Strokes 集合內含的 Stroke 物件數目,並會以該計數更新標籤文字。
' 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