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


RealTimeStylus - конструктор (IntPtr, Tablet)

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

Initializes a new instance of the RealTimeStylus class, attaches it to the specified window, and restricts ink collection to the specified tablet.

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

Синтаксис

'Декларация
Public Sub New ( _
    handle As IntPtr, _
    tablet As Tablet _
)
'Применение
Dim handle As IntPtr
Dim tablet As Tablet

Dim instance As New RealTimeStylus(handle, _
    tablet)
public RealTimeStylus(
    IntPtr handle,
    Tablet tablet
)
public:
RealTimeStylus(
    IntPtr handle, 
    Tablet^ tablet
)
public RealTimeStylus(
    IntPtr handle,
    Tablet tablet
)
public function RealTimeStylus(
    handle : IntPtr, 
    tablet : Tablet
)

Параметры

  • handle
    Тип: System.IntPtr
    The handle of the window to which to attach the RealTimeStylus object. If this parameter is set to 0, the constructor throws an exception.
  • tablet
    Тип: Microsoft.Ink.Tablet
    The tablet on which to collect ink, or nullссылка null (Nothing в Visual Basic) (Nothing in Visual Basic) to allow ink collection on any attached tablet.

Заметки

For new RealTimeStylus objects, ink collection is initially disabled and the input region is set to the bounds of the window to which the RealTimeStylus object is attached. For more information, see the Enabled and WindowInputRectangle properties.

Примеры

This C# example is a snippet from a form's Load event handler, which creates a RealTimeStylus object attached to the Handle of the Panel object, thePanel. Only the Tablet object, theTablet, is used for input.

using Microsoft.Ink;
using Microsoft.StylusInput;
using Microsoft.StylusInput.PluginData;

// ...

// The panel where the tablet pen data is collected.
private System.Windows.Forms.Panel thePanel;

// The form's Load event handler.
private void theForm_Load(object sender, System.EventArgs e)
{
    // ...

    // Create the RealTimeStylus object.
    this.theRealTimeStylus = new RealTimeStylus(this.thePanel.Handle, theTablet);

    // ...
}

Платформы

Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003

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

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

.NET Framework

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

См. также

Ссылки

RealTimeStylus Класс

RealTimeStylus - члены

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

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

Microsoft.Ink.Tablet