Share via


Strokes Class

Contains the collection of Stroke objects.

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

Syntax

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

Remarks

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.

Warning

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.

Inheritance Hierarchy

System.Object
  Microsoft.Ink.Strokes

Thread Safety

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

Platforms

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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Strokes Members

Microsoft.Ink Namespace

Stroke

Ink

DrawingAttributes