Share via


Ink.ExtractStrokes Method

Extracts all of the Stroke objects from the Ink object and returns a new Ink object containing the extracted Strokes collection.

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

Syntax

'Declaration
Public Function ExtractStrokes As Ink
'Usage
Dim instance As Ink 
Dim returnValue As Ink 

returnValue = instance.ExtractStrokes()
public Ink ExtractStrokes()
public:
Ink^ ExtractStrokes()
public function ExtractStrokes() : Ink

Return Value

Type: Microsoft.Ink.Ink
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.

Examples

In this example, a new Ink object is created that contains the entire Strokes collection from the InkOverlay object. All of the Stroke objects are removed from the original Ink object associated with the InkOverlay object.

Dim newInk As Ink = mInkOverlay.Ink.ExtractStrokes()
Ink newInk = mInkOverlay.Ink.ExtractStrokes();

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

See Also

Reference

Ink Class

Ink Members

ExtractStrokes Overload

Microsoft.Ink Namespace

Strokes

ExtractFlags