Share via


InkPicture.EraserWidth Property

Gets or sets a value that specifies the width of the eraser pen tip.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
<BrowsableAttribute(True)> _
Public Property EraserWidth As Integer
'Usage
Dim instance As InkPicture 
Dim value As Integer 

value = instance.EraserWidth

instance.EraserWidth = value
[BrowsableAttribute(true)]
public int EraserWidth { get; set; }
[BrowsableAttribute(true)]
public:
property int EraserWidth {
    int get ();
    void set (int value);
}
public function get EraserWidth () : int 
public function set EraserWidth (value : int)

Property Value

Type: System.Int32
A value that specifies the width of the eraser pen tip.

Remarks

The value specifies the width of the eraser pen tip in ink space units.

You cannot assign negative values to this property.

The default value is 212.

Examples

This C# example creates an InkPicture object, theInkPicture, and sets the EraserWidth property to 10.

[C#]

InkPicture theInkPicture = new InkPicture();
theInkPicture.EraserWidth = 10;

This Microsoft® Visual Basic® .NET example creates an InkPicture object, theInkPicture, and sets the EraserWidth property to 10.

[Visual Basic]

Dim theInkPicture As New InkPicture()
theInkPicture.EraserWidth = 10

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

See Also

Reference

InkPicture Class

InkPicture Members

Microsoft.Ink Namespace

InkPicture.EraserMode

InkPicture.EditingMode

InkOverlayEraserMode

InkOverlayEditingMode