GestureAlternate.Id Property |
Id of the gesture that occured.
Definition
Visual Basic .NET Public ReadOnly Property Id As ApplicationGesture C# public ApplicationGesture Id { get; } Managed C++ public: __property ApplicationGesture* get_Id();
Property Value
Microsoft.Ink.ApplicationGesture.
This property is read-only. This property has no default value.
AllGestures0Recognizes all application-specific gestures. NoGesture61440Recognizes no application-specific gestures. Scratchout61441Erases content. This gesture requires at least three strokes in a back-and-forth direction. Triangle61442Inserts input. The triangle must be drawn in a single stroke, without lifting the pen. Square61443Marks an action item. The square can be drawn in one or two strokes. In one stroke, draw the entire square without lifting the pen. In two strokes, draw three sides of the square and use another stroke to draw the remaining side. Do not use more than two strokes to draw the square. Star61444Marks an action item. The star must have exactly five points and be drawn in a single stroke without lifting the pen. Check61445Denotes a check-off. The upward stroke must be twice as long as the smaller downward stroke. Curlicue61456Cuts a word. Start the curlicue on the word you intend to cut. DoubleCurlicue61457Copies a word. Start the double-curlicue on the word you intend to copy. Circle61472Has no suggested semantic behavior or action. The circle must be drawn in a single stroke without lifting the pen. DoubleCircle61473Pastes a selection. The two circles must overlap each other and be drawn in a single stroke without lifting the pen. SemiCircleLeft61480Undoes an action. The semicircle must be drawn from left to right. The two ends of the semicircle should be as horizontally even as possible . SemiCircleRight61481Redoes an action. The semicircle must be drawn from right to left. The two ends of the semicircle should be as horizontally even as possible. ChevronUp61488Has no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. ChevronDown61489Has no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. ChevronLeft61490Has no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. ChevronRight61491Has no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. ArrowUp61496Has no suggested semantic behavior or action. The arrow can be drawn in single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. ArrowDown61497Has no suggested semantic behavior or action. The arrow can be drawn in a single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. ArrowLeft61498Has no suggested semantic behavior or action. The arrow can be drawn in a single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. ArrowRight61499Has no suggested semantic behavior or action. The arrow can be drawn in a single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. Up61528Has no suggested semantic behavior or action. This gesture must be drawn as a single fast flick in the upward direction. Down61529Has no suggested semantic behavior or action. This gesture must be drawn as a single fast flick in the downward direction. Left61530Specifies a backspace. This gesture must be drawn as a single fast flick to the left. Right61531Signifies a space. This gesture must be drawn as a single fast flick to the right. UpDown61536Undoes an action. This gesture must be drawn in a single stroke starting with the up stroke. The two strokes must be as close to each other as possible. DownUp61537Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the down stroke. The two strokes must be as close to each other as possible. LeftRight61538Cuts a selection. This gesture must be drawn in a single stroke starting with the left stroke. The two strokes must be as close to each other as possible. RightLeft61539Copies a selection. This gesture must be drawn in a single stroke starting with the right stroke. The two strokes must be as close to each other as possible. UpLeftLong61540Decreases the indent. This gesture must be drawn in a single stroke starting with the up stroke. The left stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle. UpRightLong61541Signifies pressing a TAB key. This gesture must be drawn in a single stroke starting with the up stroke. The right stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle. DownLeftLong61542Signifies pressing an ENTER key. This gesture must be drawn in a single stroke starting with the down stroke. The left stroke is about twice as long as the up stroke, and the two strokes must be at a right angle. DownRightLong61543Signifies pressing the spacebar. This gesture must be drawn in a single stroke starting with the down stroke. The right stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle. UpLeft61544Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the up stroke. The two sides must be as equal in length as possible and at a right angle. UpRight61545Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the up stroke. The two sides must be as equal in length as possible and at a right angle. DownLeft61546Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the down stroke. The two sides must be as equal in length as possible and at a right angle. DownRight61547Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the down stroke. The two sides must be as equal in length as possible and at a right angle. LeftUp61548Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the left stroke. The two sides must be as equal in length as possible and at a right angle. LeftDown61549Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the left stroke. The two sides are as equal in length as possible and at a right angle. RightUp61550Signifies an Input Method Editor (IME) convert. This gesture must be drawn in a single stroke starting with the right stroke. The two sides must be as equal in length as possible and at a right angle. RightDown61551Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the right stroke. The two sides must be as equal in length as possible and at a right angle. Exclamation61604Has no suggested semantic behavior or action. The line must be drawn first and then the dot drawn quickly and as close to the line as possible. Tap61680Signifies a mouse click. For the least amount of slippage, the tap must be made quickly. DoubleTap61681Signifies a mouse double-click. The two taps must be made quickly to result in the least amount of slippage and the least duration between taps. In addition, the taps must be as close to each other as possible.
Examples
This Microsoft® Visual C#® .NET example is a snippet from the implementation of the IStylusAsyncPlugin interface's CustomStylusDataAdded method. The form which implements the IStylusAsyncPlugin interface contains a TextBox
object, theTextBox. The CustomStylusDataAdded method checks for custom stylus data from the GestureRecognizer object and displays information about any gesture or gestures that the GestureRecognizer object recognized.
[C#]using Microsoft.Ink; using Microsoft.StylusInput; using Microsoft.StylusInput.PluginData; // ... // Declare the RealTimeStylus objects, the GestureRecognizer plugin, // and the DynamicRenderer plug-in. private Microsoft.StylusInput.RealTimeStylus thePrimaryRealTimeStylus = null; private Microsoft.StylusInput.RealTimeStylus theSecondaryRealTimeStylus = null; private Microsoft.StylusInput.GestureRecognizer theGestureRecognizer = null; private Microsoft.StylusInput.DynamicRenderer theDynamicRenderer = null; // ... // Informs the implementing object that user data is available. public void CustomStylusDataAdded(RealTimeStylus sender, CustomStylusData data) { // We can identify the kind of custom data via either the Guid or Type. // For the purpose of this demonstration we will validate both just to be safe. // For other scenarios either approach is valid. if (data.CustomDataId == GestureRecognizer.GestureRecognitionDataGuid) { // Cast the custom stylus data to gesture recognition data. GestureRecognitionData theData = data.Data as GestureRecognitionData; // If there is data in the notification, then display the information // for all of the gestures recognized. if (theData != null && theData.Count > 0) { this.theTextBox.Text = "GestureRecognitionData:" + Environment.NewLine; foreach (GestureAlternate theGesture in theData) { this.theTextBox.Text += string.Format( " Gesture {0,-10}, Confidence {1,-8}, Count {2}." + Environment.NewLine, theGesture.Id, theGesture.Confidence, theGesture.StrokeCount); } this.theTextBox.Text += Environment.NewLine; } } }
object, theTextBox. The