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


Divider - конструктор (Strokes, RecognizerContext)

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

Initializes a new instance of the Divider class.

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

Синтаксис

'Декларация
Public Sub New ( _
    strokes As Strokes, _
    recognizerContext As RecognizerContext _
)
'Применение
Dim strokes As Strokes
Dim recognizerContext As RecognizerContext

Dim instance As New Divider(strokes, _
    recognizerContext)
public Divider(
    Strokes strokes,
    RecognizerContext recognizerContext
)
public:
Divider(
    Strokes^ strokes, 
    RecognizerContext^ recognizerContext
)
public Divider(
    Strokes strokes,
    RecognizerContext recognizerContext
)
public function Divider(
    strokes : Strokes, 
    recognizerContext : RecognizerContext
)

Параметры

Заметки

If you use this constructor overload, the Divider object contains the stroke collection and uses the RecognizerContext object. However, you will be unable able to update its LineHeight property.

If the recognizerContext parameter is nullссылка null (Nothing в Visual Basic), the RecognizerContext object is not assigned to the Divider object.

If the recognizer for the RecognizerContext object in the recognizerContext parameter is not a text recognizer or does not support the free input capability, then the constructor throws an exception and the Divider object is not created.

Примеры

This C# example creates a Divider that contains the Strokes collection, theStrokes, and uses the RecognizerContext object, theRecognizerContext.

Divider theDivider = new Divider(theStrokes, theRecognizerContext);

This Microsoft Visual Basic .NET example creates a Divider that contains the Strokes collection, theStrokes, and uses the RecognizerContext object, theRecognizerContext.

Dim theDivider As New Divider(theStrokes, theRecognizerContext)

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

Divider Класс

Divider - члены

Divider - перегрузка

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

Divider

Divider.LineHeight

Divider.RecognizerContext

Divider.Strokes

Recognizer.Capabilities