RealTimeStylus - конструктор (Control, Boolean)
Обновлен: Ноябрь 2007
Initializes a new instance of the RealTimeStylus class, attaches it to the specified control, and specifies whether or not to use the mouse for input.
Пространство имен: Microsoft.StylusInput
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Sub New ( _
attachedControl As Control, _
useMouseForInput As Boolean _
)
'Применение
Dim attachedControl As Control
Dim useMouseForInput As Boolean
Dim instance As New RealTimeStylus(attachedControl, _
useMouseForInput)
public RealTimeStylus(
Control attachedControl,
bool useMouseForInput
)
public:
RealTimeStylus(
Control^ attachedControl,
bool useMouseForInput
)
public RealTimeStylus(
Control attachedControl,
boolean useMouseForInput
)
public function RealTimeStylus(
attachedControl : Control,
useMouseForInput : boolean
)
Параметры
- attachedControl
Тип: System.Windows.Forms.Control
The control to which to attach the RealTimeStylus object. If this parameter is set to nullссылка null (Nothing в Visual Basic) (Nothing in Visual Basic), the constructor throws an exception.
- useMouseForInput
Тип: System.Boolean
A value that indicates whether to use the mouse for tablet input.Value
Meaning
true
The mouse may be used for tablet input.
false
The mouse may not be used for tablet input.
Заметки
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 Microsoft Visual C# .NET example is a snippet from a form's Load event handler, which creates a RealTimeStylus object attached to the Panel object, thePanel. The mouse is not used for tablet input, but all other Tablet objects are.
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, false);
// ...
}
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0