Esporta (0) Stampa
Espandi tutto

Costruttore RealTimeStylus (Control, Tablet)

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

Spazio dei nomi: Microsoft.StylusInput
Assembly: Microsoft.Ink (in

public RealTimeStylus (
	Control attachedControl,
	Tablet tablet
public RealTimeStylus (
	Control attachedControl, 
	Tablet tablet
public function RealTimeStylus (
	attachedControl : Control, 
	tablet : Tablet
Non applicabile.



The control to which to attach the RealTimeStylus object. If this parameter is set to null (Nothing in Microsoft Visual Basic .NET), the constructor throws an exception.


The tablet on which to collect ink, or riferimento null (Nothing in 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 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. 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, theTablet);

    // ...

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile per Pocket PC, Windows Mobile per Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Microsoft .NET Framework 3.0 è supportato in Windows Vista, Microsoft Windows XP SP2 e Windows Server 2003 SP1.

.NET Framework

Supportato in:

Aggiunte alla community

© 2014 Microsoft