InkCollector.CollectingInk Property
Gets a value that specifies whether ink is currently being drawn on an InkCollector object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public ReadOnly Property CollectingInk As Boolean
'Usage
Dim instance As InkCollector
Dim value As Boolean
value = instance.CollectingInk
public bool CollectingInk { get; }
public:
property bool CollectingInk {
bool get ();
}
/** @property */
public boolean get_CollectingInk ()
public function get CollectingInk () : boolean
Not applicable.
Property Value
A value that specifies whether ink is currently being drawn on an InkCollector object. true if Ink is being drawn on the InkCollector object; otherwise, false.
Remarks
You can use the CollectingInk property to see if ink is being drawn on an InkCollector object rather than monitoring the Stroke event.
Note
Because ink collection is happening on a different thread than your application code, it is possible that the CollectingInk property can change soon after you have checked it. Thus, your code may be operating under the assumption that the InkCollector is not collecting ink, when in fact it is. If this occurs, an error is thrown. To be safe, put such code in a try-catch block.
Example
This C# example gets the value that indicates whether ink is being drawn on an InkCollector.
bool isCollecting = theInkCollector.CollectingInk;
This Microsoft Visual Basic .NET example retrieves a value indicating whether ink is being drawn from an InkCollector.
Dim isCollecting As Boolean = theInkCollector.CollectingInk
Platforms
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.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
InkCollector Class
InkCollector Members
Microsoft.Ink Namespace
InkCollector.Stroke