Condividi tramite


Proprietà ContextNodeCreatedEventArgs.NodeCreated

Aggiornamento: novembre 2007

Ottiene l'oggetto ContextNode creato dall'oggetto InkAnalyzer.

Spazio dei nomi:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property NodeCreated As ContextNode
'Utilizzo
Dim instance As ContextNodeCreatedEventArgs
Dim value As ContextNode

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

Valore proprietà

Tipo: Microsoft.Ink.ContextNode
Oggetto ContextNode creato dall'oggetto InkAnalyzer.

Esempi

Nell'esempio seguente viene definito un metodo, AddContextNode, che gestisce l'evento ContextNodeCreated. Le informazioni relative all’evento vengono passate all’oggetto modello di documento, theDocumentModel.

In questo esempio non viene fornita la definizione del modello di documento né viene illustrato come vengono elaborate le informazioni passate a tale modello.

'/ <summary>
'/ Handles the InkAnalyzer.ContextNodeCreated event.
'/ </summary>
'/ <param name="sender">The source of the event.</param>
'/ <param name="e">The event data.</param>
'/ <remarks>
'/ Note: when this event is fired, the ContextNode has not been populated
'/ with extended and other properties. Handle the ContextNodePropertiesUpdated
'/ event to populate the corresponding ContextNode in the document model.
'/ </remarks>
Private Sub AddContextNode( _
    ByVal sender As Object, _
    ByVal e As Microsoft.Ink.ContextNodeCreatedEventArgs)

    ' Do not add unclassified ink nodes to the document model.
    If Microsoft.Ink.ContextNodeType.UnclassifiedInk _
        <> e.NodeCreated.Type Then

        Me.theDocumentModel.AddNode(e.NodeCreated)
    End If

End Sub 'AddContextNode

        /// <summary>
        /// Handles the InkAnalyzer.ContextNodeCreated event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The event data.</param>
        /// <remarks>
        /// Note: when this event is fired, the ContextNode has not been populated
        /// with extended and other properties. Handle the ContextNodePropertiesUpdated
        /// event to populate the corresponding ContextNode in the document model.
        /// </remarks>
        private void AddContextNode(
            object sender, Microsoft.Ink.ContextNodeCreatedEventArgs e)
        {
            // Do not add unclassified ink nodes to the document model.
            if (Microsoft.Ink.ContextNodeType.UnclassifiedInk
                != e.NodeCreated.Type)
            {
                this.theDocumentModel.AddNode(e.NodeCreated);
            }
        }

Piattaforme

Windows Vista

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

ContextNodeCreatedEventArgs Classe

Membri ContextNodeCreatedEventArgs

Spazio dei nomi Microsoft.Ink