Compartir a través de


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 void SaveResults (
    Stream stream, 
    StrokeCollection strokes
)
public function SaveResults (
    stream : Stream, 
    strokes : StrokeCollection
)
Not applicable.

Parameters

  • stream
    The stream to which ink analyzer results are saved.
  • strokes
    The stroke collection for which to save analysis results.

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.

Example

This example saves all the analysis results for the StrokeCollection, selectedStrokes. theInkAnalyzer is the InkAnalyzer to which selectedStrokes are assigned. theSavedResults is a MemoryStream that 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 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

InkAnalyzer Class
InkAnalyzer Members
System.Windows.Ink Namespace