Share via


InkAnalyzer.Ink Property

Gets the Ink object from which the InkAnalyzer can analyze stroke data.

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

Syntax

'Declaration
Public ReadOnly Property Ink As Ink
'Usage
Dim instance As InkAnalyzer 
Dim value As Ink 

value = instance.Ink
public Ink Ink { get; }
public:
property Ink^ Ink {
    Ink^ get ();
}
public function get Ink () : Ink

Property Value

Type: Microsoft.Ink.Ink
The Ink object from which the InkAnalyzer can analyze stroke data.

Remarks

The InkAnalyzer can analyze stroke data from only one Ink object. You cannot change this association after the ink analyzer is initialized.

Examples

This example removes all of the strokes associated with an InkAnalyzer, theInkAnalyzer. It then deletes the strokes from the associated Ink object.

' Get all the strokes associated with the ink analyzer. 
Dim theStrokes As Microsoft.Ink.Strokes = Me.theInkAnalyzer.RootNode.Strokes

If Nothing IsNot theStrokes Then 
    ' Remove the strokes from the analyzer. 
    Me.theInkAnalyzer.RemoveStrokes(theStrokes)

    ' Deleted the strokes from the associated Ink object. 
    Me.theInkAnalyzer.Ink.DeleteStrokes(theStrokes)
End If
// Get all the strokes associated with the ink analyzer.
Microsoft.Ink.Strokes theStrokes = this.theInkAnalyzer.RootNode.Strokes;

if (null != theStrokes)
{
    // Remove the strokes from the analyzer. 
    this.theInkAnalyzer.RemoveStrokes(theStrokes);

    // Deleted the strokes from the associated Ink object. 
    this.theInkAnalyzer.Ink.DeleteStrokes(theStrokes);
}

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