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