Share via


InkAnalyzer.SaveResults Method (Stream, StrokeCollection)

Saves analysis results for a specific stroke collection associated with an ink analyzer.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public Sub SaveResults ( _
    stream As Stream, _
    strokes As StrokeCollection _
)
'Usage
Dim instance As InkAnalyzer 
Dim stream As Stream 
Dim strokes As StrokeCollection

instance.SaveResults(stream, strokes)
public void SaveResults(
    Stream stream,
    StrokeCollection strokes
)
public:
void SaveResults(
    Stream^ stream, 
    StrokeCollection^ strokes
)
public function SaveResults(
    stream : Stream, 
    strokes : StrokeCollection
)

Parameters

  • stream
    Type: System.IO.Stream

    The stream to which ink analyzer results are saved.

Remarks

This method saves the current analysis results for strokes, but does not save the associated context nodes.

This method throws an exception when any stroke in strokes is associated with a context node that has a ContextNode.PartiallyPopulated value of true.

Examples

This example saves all the analysis results for the StrokeCollection named selectedStrokes. selectedStrokes are assigned to the InkAnalyzer (named theInkAnalyzer) is to which. A MemoryStream named theSavedResults stores the saved analysis results.

' Save the results for the selected strokes.
theInkAnalyzer.SaveResults(Me.theSavedResults, Me.selectedStrokes)
// Save the results for the selected strokes.
theInkAnalyzer.SaveResults(this.theSavedResults, this.selectedStrokes);

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

InkAnalyzer Class

InkAnalyzer Members

SaveResults Overload

System.Windows.Ink Namespace