InkCanvas.EraserShape Property

Definition

Gets or sets the StylusShape used to point-erase ink from an InkCanvas.

public:
 property System::Windows::Ink::StylusShape ^ EraserShape { System::Windows::Ink::StylusShape ^ get(); void set(System::Windows::Ink::StylusShape ^ value); };
public System.Windows.Ink.StylusShape EraserShape { get; set; }
member this.EraserShape : System.Windows.Ink.StylusShape with get, set
Public Property EraserShape As StylusShape

Property Value

StylusShape

The eraser shape associated with the InkCanvas.

Examples

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);
inkCanvas1.EditingModeInverted = InkCanvasEditingMode.EraseByPoint
inkCanvas1.EraserShape = New EllipseStylusShape(5, 5)

Remarks

This shape will be used to erase ink from an InkCanvas when the current EditingMode is set to EraseByPoint.

Individual properties of a StylusShape cannot be modified once the shape has been created.

If you change the EraserShape, the cursor rendered on the InkCanvas is not updated until the next EditingMode change.

XAML Text Usage

This property is not typically used in XAML.

Applies to

See also