Freigeben über


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 ();
}
/** @property */
public Ink get_Ink ()
public function get Ink () : Ink
Not applicable.

Property Value

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.

Example

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 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
Microsoft.Ink Namespace