CustomStrokes Class
Contains a collection of user-defined Strokes collections.
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
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.
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.