InkAnalyzer.Load Method (Stream, Boolean)
Assembly: IAWinFX (in iawinfx.dll)
A stream that contains the saved analysis results.
true to exclude strokes that were not previously added to an InkAnalyzer; otherwise, false.
Return Valuetrue if the analysis results loaded successfully; otherwise, false.
In other layers of ink analysis, such as the Windows Forms layer, the ink analyzer can save strokes that are not added to it. If doNotAutoAddStrokes is true, the InkAnalyzer ignores the strokes that were not added to an ink analyzer when the strokes were saved.
The InkAnalyzer that ships with the Windows Presentation Foundation does not save strokes that are not added to the InkAnalyzer. When the ink is saved by the System.Windows.Ink.InkAnalyzer, doNotAutoAddStroke does not affect the behavior of the Load(Stream,Boolean) method
When the InkAnalyzer adds a ContextNode from the saved results, it assigns a new globally unique identifier (GUID) to the ContextNode object's Id property.
This method appends the saved analysis results to existing results. To ensure that the combined results are ordered correctly, add the area containing the loaded context nodes to the ink analyzer's DirtyRegion and reanalyze the ink.
If a saved analysis hint conflicts with an existing analysis hint, the InkAnalyzer does not load the saved hint but loads the rest of the saved results. However, if saved stroke data is within the area of a saved analysis hint that is not loaded, InkAnalyzer adds the bounding box of the stroke to the analyzer's DirtyRegion. If saved stroke data is within an existing analysis hint's area, the analyzer also adds the bounding box of the stroke to the analyzer's DirtyRegion. For more information about analysis hints, see AnalysisHintNode.
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 EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.