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

public ref class RealTimeStylus sealed : IDisposable, IStylusAsyncPlugin
public final class RealTimeStylus implements IDisposable, IStylusAsyncPlugin
public final class RealTimeStylus implements IDisposable, IStylusAsyncPlugin
Not applicable.

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.


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.SafeTopLevelWindowsUIPermissionWindow.SafeTopLevelWindows permission. For more information about partial trust, see Security and Trust.


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


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

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions