InkCanvasEditingMode 列挙型
定義
public enum class InkCanvasEditingMode
public enum InkCanvasEditingMode
type InkCanvasEditingMode =
Public Enum InkCanvasEditingMode
- 継承
フィールド
EraseByPoint | 5 | ペンがストロークに交差すると、ストロークの一部が消去されることを示します。Indicates that the pen erases part of a stroke when the pen intersects the stroke. |
EraseByStroke | 6 | ペンがストロークに交差すると、ストローク全体が消去されることを示します。Indicates that the pen erases an entire stroke when the pen intersects the stroke. |
GestureOnly | 2 | InkCanvas がジェスチャに応答し、インクを受け取らないことを示します。Indicates that the InkCanvas responds to gestures, and does not receive ink. |
Ink | 1 | ペンが InkCanvas にデータを送信すると、そこにインクが表示されることを示します。Indicates that ink appears on the InkCanvas when the pen sends data to it. |
InkAndGesture | 3 | InkCanvas がジェスチャに応答し、インクを受け取ることを示します。Indicates that the InkCanvas responds to gestures, and receives ink. |
None | 0 | ペンが InkCanvas にデータを送信するときにアクションが実行されないことを示します。Indicates that no action is taken when the pen sends data to the InkCanvas. |
Select | 4 | ペンが InkCanvas でストロークおよび要素を選択することを示します。Indicates that the pen selects strokes and elements on the InkCanvas. |
例
次の例では、ユーザーがスタイラスの逆の先端でストロークを部分的に消去できるようにする方法を示します。The following example demonstrates how to allow users to partially erase strokes with the inverted tip of a stylus. ユーザーがインクを消去するInkCanvasと、に楕円カーソルが表示されます。An elliptical cursor appears on the InkCanvas when the user erases ink.
inkCanvas1.EditingModeInverted = InkCanvasEditingMode.EraseByPoint;
inkCanvas1.EraserShape = new EllipseStylusShape(5, 5);
inkCanvas1.EditingModeInverted = InkCanvasEditingMode.EraseByPoint
inkCanvas1.EraserShape = New EllipseStylusShape(5, 5)
注釈
およびEditingMode InkCanvasプロパティは、InkCanvasEditingModeを使用して、タブレットペンからの入力を受け取ったときのの動作を指定します。 EditingModeInvertedThe EditingMode and EditingModeInverted properties use the InkCanvasEditingMode to specify how the InkCanvas behaves when it receives input from a tablet pen.