PopulateContextNodeEventArgs.NodeToPopulate 属性

获取 InkAnalyzer 正在访问的上下文节点。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink.Analysis(在 Microsoft.Ink.Analysis.dll 中)

语法

声明
Public ReadOnly Property NodeToPopulate As ContextNode
用法
Dim instance As PopulateContextNodeEventArgs
Dim value As ContextNode

value = instance.NodeToPopulate
public ContextNode NodeToPopulate { get; }
public:
property ContextNode^ NodeToPopulate {
    ContextNode^ get ();
}
/** @property */
public ContextNode get_NodeToPopulate()
public function get NodeToPopulate () : ContextNode

属性值

类型:Microsoft.Ink.ContextNode
InkAnalyzer 正在访问的上下文节点。

示例

下面的示例定义 PopulateContextNode 方法,用以处理 PopulateContextNode 事件。事件信息将传递给文档模型对象 theDocumentModel。

此示例不提供文档模型的定义,也不演示文档模型如何处理传入的信息。

'/ <summary>
'/ Handles the InkAnalyzer.PopulateContextNode event.
'/ </summary>
'/ <param name="sender">The source of the event.</param>
'/ <param name="e">The event data.</param>
'/ <remarks>
'/ This event handler fully populates a ContextNode from the document model.
'/ The InkAnalyzer calls this event handler when it accesses a partially
'/ populated ContextNode created by the document model.
'/ </remarks>
Private Sub PopulateContextNode( _
    ByVal sender As Object, _
    ByVal e As Microsoft.Ink.PopulateContextNodeEventArgs)

    Me.theDocumentModel.PopulateNode(e.NodeToPopulate, _
        CType(sender, Microsoft.Ink.InkAnalyzer))

End Sub 'PopulateContextNode

        /// <summary>
        /// Handles the InkAnalyzer.PopulateContextNode event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The event data.</param>
        /// <remarks>
        /// This event handler fully populates a ContextNode from the document model.
        /// The InkAnalyzer calls this event handler when it accesses a partially
        /// populated ContextNode created by the document model.
        /// </remarks>
        private void PopulateContextNode(
            object sender, Microsoft.Ink.PopulateContextNodeEventArgs e)
        {
            this.theDocumentModel.PopulateNode(
                e.NodeToPopulate, (Microsoft.Ink.InkAnalyzer)sender);
        }

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

PopulateContextNodeEventArgs 类

PopulateContextNodeEventArgs 成员

Microsoft.Ink 命名空间