This documentation is archived and is not being maintained.

Strokes Class

Contains the collection of Stroke objects.

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

'Declaration
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class Strokes _
	Implements ICollection, IEnumerable, IDisposable
'Usage
Dim instance As Strokes

A Strokes collection is a subset of strokes in an Ink object. Examples of Strokes collections are:

  • All strokes drawn by the same cursor.

  • Strokes in the Ink object corresponding to a word.

  • All strokes that intersect a known region.

Strokes collections are references to ink data and are not the actual data itself.

You can create a new Strokes collection by calling the InkCreateStrokes method, or by using the Add method of the InkCustomStrokes property. The Strokes class does not have a publicly accessible constructor.

Caution noteCaution:

To avoid a memory leak, you must explicitly call the Dispose method on any Strokes collection to which an event handler has been attached before the collection goes out of scope.

After the Strokes collection is created, it can be used to specify various operations on that subset of strokes, such as drawing, measuring, deleting, or extracting the set to a new Ink object.

System.Object
  Microsoft.Ink.Strokes

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0
Show: