次の方法で共有


Strokes.Count Property

Gets the number of Stroke objects contained in the Strokes collection.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public ReadOnly Property Count As Integer
'Usage
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
Not applicable.

Property Value

The number of Stroke objects contained in the Strokes collection.

Example

This C# example gets the number of Stroke objects within the Strokes collection of an InkPicture control, theInkPicture, and updates the contents of a text box control, theTextBox.

// Get the collecton of strokes in the InkPicture control.
Microsoft.Ink.Strokes theStrokes = theInkPicture.Ink.Strokes;

// Add the number of strokes to the TextBox.
theTextBox.Text = theStrokes.Count.ToString();

This Microsoft Visual Basic.NET example gets the number of Stroke objects within the Strokes collection of an InkPicture control, theInkPicture, and updates the contents of a text box control, theTextBox.

' Get the collecton of strokes in the InkPicture control.
Dim theStrokes As Microsoft.Ink.Strokes = theInkPicture.Ink.Strokes

' Add the number of strokes to the TextBox.
theTextBox.Text = theStrokes.Count

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Strokes Class
Strokes Members
Microsoft.Ink Namespace
Stroke