次の方法で共有


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