Share via


InkAnalyzer.SynchronizingObject Property

Gets or sets the object that designates upon which thread InkAnalyzer background analysis events are raised.

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

Syntax

'Declaration
Public Property SynchronizingObject As ISynchronizeInvoke
'Usage
Dim instance As InkAnalyzer 
Dim value As ISynchronizeInvoke 

value = instance.SynchronizingObject

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

Property Value

Type: System.ComponentModel.ISynchronizeInvoke
The object that designates upon which thread InkAnalyzer background analysis events are raised. The default value is nulla null reference (Nothing in Visual Basic).

Remarks

When the BackgroundAnalyze method is called, the InkAnalyzer performs the ink analysis on a background thread. The InkAnalyzer raises events generated by the background analysis on the thread upon which the SynchronizingObject was created. If this property is nulla null reference (Nothing in Visual Basic), the InkAnalyzer raises these events on the background thread.

Examples

This example creates an InkAnalyzer, theInkAnalyzer, and then sets SynchronizingObject to the enclosing object.

' Create the InkAnalyzer. 
Me.theInkAnalyzer = New Microsoft.Ink.InkAnalyzer(Me.theInk, Me)
Me.theInkAnalyzer.SynchronizingObject = Me
// Create the InkAnalyzer. 
this.theInkAnalyzer =
    new Microsoft.Ink.InkAnalyzer(this.theInk, this);
this.theInkAnalyzer.SynchronizingObject = this;

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

InkAnalyzer Class

InkAnalyzer Members

Microsoft.Ink Namespace

InkAnalyzer.BackgroundAnalyze