Share via


CustomStrokes Class

Contains a collection of user-defined Strokes collections.

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

Syntax

'Declaration
Public Class CustomStrokes
    Implements ICollection, IEnumerable
'Usage
Dim instance As CustomStrokes
public class CustomStrokes : ICollection, IEnumerable
public ref class CustomStrokes : ICollection, IEnumerable
public class CustomStrokes implements ICollection, IEnumerable
public class CustomStrokes implements ICollection, IEnumerable
Not applicable.

Remarks

The custom strokes are essentially named Strokes collections that are persisted and recalled for later use.

You use a collection of custom strokes to store strokes that have the same meaning or that are related in some way. Examples of strokes that you may want to persist include:

  • All the strokes drawn by the same cursor (pen)

  • The strokes in an Ink object that correspond to a word or paragraph

  • All the strokes that intersect a known region

For example, suppose you want to draw with two different cursors and keep separate the set of strokes that you draw with each cursor. You could recognize the strokes drawn with the first cursor and attach a RecognitionResult object to that collection of strokes. To persist the recognition result, add the strokes to the CustomStrokes collection of the Ink object. You can later access the first collection of strokes by getting the persisted CustomStrokes collection from the Ink object.

Each CustomStrokes collection is referenced by name.

CustomStrokes collections are references to ink data, not the actual data itself.

Inheritance Hierarchy

System.Object
  Microsoft.Ink.CustomStrokes

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 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

CustomStrokes Members
Microsoft.Ink Namespace
Ink
Strokes