InkCanvas.EraserShape Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The eraser shape associated with the InkCanvas.
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)
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.
This property is not typically used in XAML.
Produto | Versões |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: