Share via


InkAnalyzerBase.AnalysisModes Property

Gets or sets flags that control how the ink analyzer performs ink analysis.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Property AnalysisModes As AnalysisModes
'Usage
Dim instance As InkAnalyzerBase 
Dim value As AnalysisModes 

value = instance.AnalysisModes

instance.AnalysisModes = value
public AnalysisModes AnalysisModes { get; set; }
public:
property AnalysisModes AnalysisModes {
    AnalysisModes get ();
    void set (AnalysisModes value);
}
public function get AnalysisModes () : AnalysisModes 
public function set AnalysisModes (value : AnalysisModes)

Property Value

Type: System.Windows.Ink.AnalysisCore.AnalysisModes
A bitwise combination of the System.Windows.Ink.AnalysisCore.AnalysisModes enumeration values.

Examples

This example initializes a new InkAnalyzerBase, theInkAnalyzerBase. It then sets the AnalysisModes property and attaches a UpdateStrokesCacheBase event handler.

' Create the ink analyzer and enable automatic reconciliation and 
' automatic stroke cache cleanup, but not intermediate results. 
Dim theInkAnalyzerBase As New System.Windows.Ink.AnalysisCore.InkAnalyzerBase()
theInkAnalyzerBase.AnalysisModes = _
    System.Windows.Ink.AnalysisCore.AnalysisModes.AutomaticReconciliationEnabled _
    Or System.Windows.Ink.AnalysisCore.AnalysisModes.StrokeCacheAutoCleanupEnabled

' Since automatic stroke cache cleanup is enabled, add an event 
' handler for the UpdateStrokesCacheBase event. 
AddHandler theInkAnalyzerBase.UpdateStrokesCacheBase, _
    AddressOf theInkAnalyzerBase_UpdateStrokesCacheBase
// Create the ink analyzer and enable automatic reconciliation and 
// automatic stroke cache cleanup, but not intermediate results.
System.Windows.Ink.AnalysisCore.InkAnalyzerBase theInkAnalyzerBase =
    new System.Windows.Ink.AnalysisCore.InkAnalyzerBase();
theInkAnalyzerBase.AnalysisModes =
    System.Windows.Ink.AnalysisCore.AnalysisModes.AutomaticReconciliationEnabled
    | System.Windows.Ink.AnalysisCore.AnalysisModes.StrokeCacheAutoCleanupEnabled;

// Since automatic stroke cache cleanup is enabled, add an event 
// handler for the UpdateStrokesCacheBase event.
theInkAnalyzerBase.UpdateStrokesCacheBase +=
    new System.Windows.Ink.AnalysisCore.UpdateStrokesCacheBaseEventHandler(
        theInkAnalyzerBase_UpdateStrokesCacheBase);

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

InkAnalyzerBase Class

InkAnalyzerBase Members

System.Windows.Ink.AnalysisCore Namespace

System.Windows.Ink.AnalysisCore.AnalysisModes

InkAnalyzerBase.Analyze

InkAnalyzerBase.BackgroundAnalyze