Share via


Strokes.Clear Method

Clears all the Stroke objects from the Strokes collection.

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

Syntax

'Declaration
Public Sub Clear
'Usage
Dim instance As Strokes

instance.Clear
public void Clear ()
public:
void Clear ()
public void Clear ()
public function Clear ()
Not applicable.

Remarks

This method does not delete the Strokes collection from its containing Ink object. To permanently delete strokes, use the Ink.DeleteStroke or Microsoft.Ink.Ink.DeleteStrokes method.

Example

This C# example removes all the Stroke objects contained in the first Strokes collection in a CustomStrokes collection. The CustomStrokes collection belongs to the Ink object associated with an InkOverlay, theInkOverlay.

theInkOverlay.Ink.CustomStrokes[0].Clear();

This Microsoft Visual Basic.NET example removes all the Stroke objects contained in the first Strokes collection in a CustomStrokes collection. The CustomStrokes collection belongs to the Ink object associated with an InkOverlay, theInkOverlay.

theInkOverlay.Ink.CustomStrokes(0).Clear()

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

Strokes Class
Strokes Members
Microsoft.Ink Namespace
CustomStrokes
Ink
InkCollector
Stroke