Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InkCanvasEditingMode Enumeration

Specifies the editing mode for the InkCanvas

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public enum InkCanvasEditingMode
public enum InkCanvasEditingMode
public enum InkCanvasEditingMode
<object property="EnumerationValue" .../>

 Member nameDescription
EraseByPointIndicates that the pen erases part of a stroke when the pen intersects the stroke. 
EraseByStrokeIndicates thcat the pen erases an entire stroke when the pen intersects the stroke. 
GestureOnlyIndicates that the InkCanvas responds to gestures, and does not receive ink. 
InkIndicates that ink appears on the InkCanvas when the pen sends data to it. 
InkAndGestureIndicates that the InkCanvas responds to gestures, and receives ink. 
NoneIndicates that no action is taken when the pen sends data to the InkCanvas
SelectIndicates that the pen selects strokes and elements on the InkCanvas.  

The EditingMode and EditingModeInverted properties use the InkCanvasEditingMode to specify how the InkCanvas behaves when it receives input from a tablet pen.

The following example demonstrates how to allow a user to partially erase strokes with the inverted tip of a stylus. An elliptical cursor appears on the InkCanvas when the user erases ink.

inkCanvas1.EditingModeInverted = InkCanvasEditingMode.EraseByPoint;
inkCanvas1.EraserShape = new EllipseStylusShape(5, 5);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft