InkOverlay.EraserMode Property
Gets or sets a value that indicates whether ink is erased by stroke or by point.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
<BrowsableAttribute(True)> _
Public Property EraserMode As InkOverlayEraserMode
'Usage
Dim instance As InkOverlay
Dim value As InkOverlayEraserMode
value = instance.EraserMode
instance.EraserMode = value
[BrowsableAttribute(true)]
public InkOverlayEraserMode EraserMode { get; set; }
[BrowsableAttribute(true)]
public:
property InkOverlayEraserMode EraserMode {
InkOverlayEraserMode get ();
void set (InkOverlayEraserMode value);
}
public function get EraserMode () : InkOverlayEraserMode
public function set EraserMode (value : InkOverlayEraserMode)
Property Value
Type: Microsoft.Ink.InkOverlayEraserMode
One of the InkOverlayEraserMode values indicates whether ink is erased by stroke or by point.
Remarks
This property applies only when the EditingMode property is set to Delete.
When erasing in InkOverlayEraserMode mode, strokes are often split into multiple smaller strokes.
Examples
In this example, an event handler attached to two radio buttons enables the user to switch the InkOverlayEraserMode property of an InkOverlay object or an InkPicture object.
Private Sub radioButtonEraseMode_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
If DirectCast(sender, RadioButton).Name = rbEraseModeStroke.Name Then
Me.mInkObject.EraserMode = InkOverlayEraserMode.StrokeErase
Else
Me.mInkObject.EraserMode = InkOverlayEraserMode.PointErase
End If
End Sub
private void radioButtonEraseMode_Click(object sender, EventArgs e)
{
// mInkObject can be InkOverlay or InkPicture
if (((RadioButton)sender).Name == rbEraseModeStroke.Name)
{
mInkObject.EraserMode = InkOverlayEraserMode.StrokeErase;
}
else
{
mInkObject.EraserMode = InkOverlayEraserMode.PointErase;
}
}
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0