InkAnalyzer.SaveResults 方法 (Stream, ContextNodeCollection)
保存与墨迹分析器关联的特定上下文节点集合的分析结果。
命名空间: System.Windows.Ink
程序集: IAWinFX(在 IAWinFX.dll 中)
语法
声明
Public Sub SaveResults ( _
stream As Stream, _
nodes As ContextNodeCollection _
)
用法
Dim instance As InkAnalyzer
Dim stream As Stream
Dim nodes As ContextNodeCollection
instance.SaveResults(stream, nodes)
public void SaveResults(
Stream stream,
ContextNodeCollection nodes
)
public:
void SaveResults(
Stream^ stream,
ContextNodeCollection^ nodes
)
public void SaveResults(
Stream stream,
ContextNodeCollection nodes
)
public function SaveResults(
stream : Stream,
nodes : ContextNodeCollection
)
参数
- stream
类型:System.IO.Stream
墨迹分析器结果要保存到的流。
- nodes
类型:System.Windows.Ink.ContextNodeCollection
要为其保存分析结果的上下文节点集合。
备注
此方法保存 nodes 及其所有上级和后代上下文节点的当前分析结果。
此方法在 nodes 中的任何上下文节点的 ContextNode.PartiallyPopulated 值为 true 时引发异常。
示例
此示例保存名为 theSelectedNodes 的 ContextNodeCollection 的所有分析结果。theInkAnalyzer 为包含 theSelectedNodes 的 InkAnalyzer。名为 theSavedResults 的 MemoryStream 将存储保存的分析结果。
' Save the results for the selected context nodes.
Me.theInkAnalyzer.SaveResults(theSavedResults, theSelectedNodes)
// Save the results for the selected context nodes.
this.theInkAnalyzer.SaveResults(theSavedResults, theSelectedNodes);
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0