Ink.ExtractStrokes Method (Strokes)
Extracts the specified Stroke objects from the Ink object and returns a new Ink object containing the extracted Stroke objects.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public Function ExtractStrokes ( _
strokes As Strokes _
) As Ink
'Usage
Dim instance As Ink
Dim strokes As Strokes
Dim returnValue As Ink
returnValue = instance.ExtractStrokes(strokes)
public Ink ExtractStrokes (
Strokes strokes
)
public:
Ink^ ExtractStrokes (
Strokes^ strokes
)
public Ink ExtractStrokes (
Strokes strokes
)
public function ExtractStrokes (
strokes : Strokes
) : Ink
Not applicable.
Parameters
- strokes
The Strokes collection to extract.
Return Value
Returns an Ink object that contains the extracted Strokes collection.
Remarks
The new Ink object retains the drawing attributes, properties, and coordinates of the original Ink object.
The default behavior for this method is to remove the Strokes collection from the original Ink object. To preserve the Strokes collection in the original Ink object and make a copy of the Ink, call either the ExtractStrokes or ExtractStrokes overload of this method with the extractionFlags parameter set to the CopyFromOriginal value from the ExtractFlags enumeration..
Example
This C# example creates a new Ink object that contains a previously determined set of strokes, theDeletedStrokes
, which are removed from the original Ink object in the InkCollector object, theInkCollector
.
Ink theNewInk = theInkCollector.Ink.ExtractStrokes(theDeletedStrokes);
This Microsoft Visual Basic.NET example creates a new Ink object that contains a previously determined set of strokes, theDeletedStrokes
, which are removed from the original Ink object in the InkCollector object, theInkCollector
.
Dim theNewInk As Ink = _
theInkCollector.Ink.ExtractStrokes(theDeletedStrokes)
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
ExtractFlags