Ink.DeleteStrokes Method ()
Deletes all of the Stroke objects in the Ink object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public Sub DeleteStrokes
'Usage
Dim instance As Ink
instance.DeleteStrokes
public void DeleteStrokes ()
public:
void DeleteStrokes ()
public void DeleteStrokes ()
public function DeleteStrokes ()
Not applicable.
Exceptions
Exception type | Condition |
---|---|
The Ink object is disposed. |
Remarks
The DeleteStrokes method can result in an error if called while the user is actively laying down ink.
Note
A Strokes collection that points to an Ink.Strokes property become invalid when Stroke objects that are contained in the original collection are deleted from the Ink object. For example, if there is a named Strokes collection, theStrokesToo
, that is based on an Ink object's Strokes property, theStrokes
, and you call the DeleteStrokes method on theStrokes
, then theStrokesToo
becomes invalid.
To delete only one Stroke object at a time, call the DeleteStroke method.
Example
This C# example function deletes all of the Stroke objects in the Ink object and redraws the panel, thePanel
, to which the InkCollector object, theInkCollector
, is attached.
theInkCollector.Ink.DeleteStrokes();
thePanel.Refresh();
This Microsoft Visual Basic.NET example function deletes all of the Stroke objects in the Ink object and redraws the panel, thePanel
, to which the InkCollector object, theInkCollector
, is attached.
theInkCollector.Ink.DeleteStrokes()
thePanel.Refresh()
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
Ink Class
Ink Members
Microsoft.Ink Namespace
Strokes
Ink.DeleteStroke
Microsoft.Ink.Ink.CreateStroke
Microsoft.Ink.Ink.CreateStrokes