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 function Clear()
Remarks
This method does not delete the Strokes collection from its containing Ink object. To permanently delete strokes, use the Ink.DeleteStroke or Ink.DeleteStrokes method.
Examples
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 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