InkCanvasEditingMode 枚举

定义

指定 InkCanvas 的编辑模式。Specifies the editing mode for the InkCanvas

public enum class InkCanvasEditingMode
public enum InkCanvasEditingMode
type InkCanvasEditingMode = 
Public Enum InkCanvasEditingMode
继承
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)

注解

和属性使用InkCanvas来指定在从 tablet 笔接收输入时的行为方式。 InkCanvasEditingMode EditingModeInverted EditingModeThe EditingMode and EditingModeInverted properties use the InkCanvasEditingMode to specify how the InkCanvas behaves when it receives input from a tablet pen.

适用于