共用方式為


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 命名空間