Поделиться через


CustomStrokes - класс

Обновлен: Ноябрь 2007

Contains a collection of user-defined Strokes collections.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class CustomStrokes _
    Implements ICollection, IEnumerable
'Применение
Dim instance As CustomStrokes
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class CustomStrokes : ICollection, 
    IEnumerable
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class CustomStrokes : ICollection, 
    IEnumerable
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust") */
public class CustomStrokes implements ICollection, 
    IEnumerable
public class CustomStrokes implements ICollection, IEnumerable

Заметки

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.

Иерархия наследования

System.Object
  Microsoft.Ink.CustomStrokes

Потокобезопасность

Любые открытые члены этого типа, объявленные как static (Shared в Visual Basic), являются потокобезопасными. Потокобезопасность членов экземпляров не гарантируется.

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

CustomStrokes - члены

Microsoft.Ink - пространство имен

Ink

Strokes