Compartir a través de


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
Public Property EraserWidth As Integer
'Usage
Dim instance As InkPicture
Dim value As Integer

value = instance.EraserWidth

instance.EraserWidth = value
public int EraserWidth { get; set; }
public:
property int EraserWidth {
    int get ();
    void set (int value);
}
/** @property */
public int get_EraserWidth ()

/** @property */
public void set_EraserWidth (int value)
public function get EraserWidth () : int

public function set EraserWidth (value : int)
Not applicable.

Property Value

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.

Example

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 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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkPicture Class
InkPicture Members
Microsoft.Ink Namespace
InkPicture.EraserMode
InkPicture.EditingMode
InkOverlayEraserMode
InkOverlayEditingMode