Strokes.Count 属性
获取 Strokes 集合中包含的 Stroke 对象的数目。
命名空间: 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