共用方式為


InkAnalyzer.Ink 屬性

取得 Ink 物件,InkAnalyzer 可從該物件中分析筆劃資料。

命名空間:  Microsoft.Ink
組件:  Microsoft.Ink.Analysis (在 Microsoft.Ink.Analysis.dll 中)

語法

'宣告
Public ReadOnly Property Ink As Ink
'用途
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

屬性值

型別:Microsoft.Ink.Ink
Ink 物件,InkAnalyzer 可從該物件中分析筆劃資料。

備註

InkAnalyzer 只能從一個 Ink 物件分析筆劃資料。筆墨分析器初始化之後,就無法變更這個關聯。

範例

這個範例會移除所有與 InkAnalyzer (theInkAnalyzer.) 相關聯的筆劃,然後從相關聯的 Ink 物件中刪除筆劃。

' 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);
}

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

InkAnalyzer 類別

InkAnalyzer 成員

Microsoft.Ink 命名空間