InkCollectorSystemGestureEventArgs.Id - свойство
Обновлен: Ноябрь 2007
Gets the value of the system gesture.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public ReadOnly Property Id As SystemGesture
'Применение
Dim instance As InkCollectorSystemGestureEventArgs
Dim value As SystemGesture
value = instance.Id
public SystemGesture Id { get; }
public:
property SystemGesture Id {
SystemGesture get ();
}
/** @property */
public SystemGesture get_Id()
public function get Id () : SystemGesture
Значение свойства
Тип: Microsoft.Ink.SystemGesture
The value of the system gesture.
Заметки
![]() |
---|
A SystemGesture object's identifier is constant over time, meaning that it never changes. |
Because each system gesture exists as a value in the SystemGesture enumeration, that value serves as the ID of that gesture.
Примеры
In this example, an InkCollectorSystemGestureEventHandler instance examines data passed in the InkCollectorSystemGestureEventArgs object. If a DoubleTap system gesture has occurred in the upper left corner of the ink canvas, all of the strokes on the ink canvas are erased.
Private Sub mInkObject_SystemGesture(ByVal sender As Object, ByVal e As InkCollectorSystemGestureEventArgs)
If (e.Id = SystemGesture.DoubleTap And e.Point.X <= 106 And e.Point.Y <= 106) Then
EraseAllStrokes()
End If
End Sub
private void mInkObject_SystemGesture(object sender, InkCollectorSystemGestureEventArgs e)
{
if (e.Id == SystemGesture.DoubleTap && e.Point.X <= 106 && e.Point.Y <= 106)
{
EraseAllStrokes();
}
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
InkCollectorSystemGestureEventArgs Класс
InkCollectorSystemGestureEventArgs - члены