InkCollector.CollectingInk - свойство
Обновлен: Ноябрь 2007
Gets a value that specifies whether ink is currently being drawn on an InkCollector object.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public ReadOnly Property CollectingInk As Boolean
'Применение
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
Значение свойства
Тип: System.Boolean
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.
Заметки
You can use the CollectingInk property to see if ink is being drawn on an InkCollector object rather than monitoring the Stroke event.
![]() |
---|
Because ink collection is handled on a separate thread from your application code, the CollectingInk property can change to true while your application code is operating under the assumption that it is still false. To handle this contingency, code that depends upon the value of the CollectingInk property should be contained within a try-catch block. |
Примеры
In this example, the CollectingInk property is checked to see if it is safe to perform operations that can only be carried out when ink is not being collected.
Try
If Not mInkCollector.CollectingInk Then
' do something
End If
Catch
' handle or rethrow
End Try
try
{
if (!mInkCollector.CollectingInk)
{
// do something
}
}
catch
{
// handle or rethrow
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0