Share via


RealTimeStylus Class

Handles the stylus packet data from a digitizer in real time. This class cannot be inherited.

Namespace:  Microsoft.StylusInput
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
<UIPermissionAttribute(SecurityAction.Demand, Window := UIPermissionWindow.SafeTopLevelWindows)> _
Public NotInheritable Class RealTimeStylus _
    Implements IDisposable, IStylusAsyncPlugin
'Usage
Dim instance As RealTimeStylus
[UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.SafeTopLevelWindows)]
public sealed class RealTimeStylus : IDisposable, 
    IStylusAsyncPlugin
[UIPermissionAttribute(SecurityAction::Demand, Window = UIPermissionWindow::SafeTopLevelWindows)]
public ref class RealTimeStylus sealed : IDisposable, 
    IStylusAsyncPlugin
public final class RealTimeStylus implements IDisposable, IStylusAsyncPlugin

Remarks

Use this class to provide access to the stylus events coming from the hardware. The RealTimeStylus class controls the flow of ink going to an ink collector.

Use this class to intercept the stylus packet stream. If you do not need to interact with the packet stream in real time before it gets to the ink collecting object, then use the InkCollector, the InkOverlay, or the InkPicture object instead of this class.

Note

You cannot attach the RealTimeStylus object to a window or control in a different process.

Security noteSecurity Note:

If using under partial trust, this class and all its methods require UIPermissionWindow.SafeTopLevelWindows permission. For more information about partial trust, see Security and Trust.

Note

The RealTimeStylus constructor will throw a Marshal.ThrowExceptionForHR exception if it is unable to create the underlying Win32 RealTimeStylus.

Inheritance Hierarchy

System.Object
  Microsoft.StylusInput.RealTimeStylus

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

RealTimeStylus Members

Microsoft.StylusInput Namespace

IStylusSyncPlugin

IStylusAsyncPlugin

Other Resources

Accessing and Manipulating Stylus Input