Freigeben über


ContextNodePropertiesUpdatedEventHandler-Delegat

Stellt die Methode dar, die das ContextNodePropertiesUpdated-Ereignis eines InkAnalyzer behandelt.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Syntax

'Declaration
Public Delegate Sub ContextNodePropertiesUpdatedEventHandler ( _
    sender As Object, _
    e As ContextNodePropertiesUpdatedEventArgs _
)
'Usage
Dim instance As New ContextNodePropertiesUpdatedEventHandler(AddressOf HandlerMethod)
public delegate void ContextNodePropertiesUpdatedEventHandler(
    Object sender,
    ContextNodePropertiesUpdatedEventArgs e
)
public delegate void ContextNodePropertiesUpdatedEventHandler(
    Object^ sender, 
    ContextNodePropertiesUpdatedEventArgs^ e
)
/** @delegate */
public delegate void ContextNodePropertiesUpdatedEventHandler(
    Object sender,
    ContextNodePropertiesUpdatedEventArgs e
)
JScript unterstützt keine Delegaten.

Parameter

Hinweise

Beim Erstellen eines ContextNodePropertiesUpdatedEventHandler-Delegaten geben Sie die Methode für die Ereignisbehandlung an. Um dem Ereignishandler das Ereignis zuzuordnen, fügen Sie dem Ereignis eine Instanz des Delegaten hinzu. Der Ereignishandler wird bei jedem Eintreten des Ereignisses aufgerufen, sofern der Delegat nicht entfernt wird. Weitere Informationen zu Ereignishandlerdelegaten finden Sie unter Ereignisse und Delegaten.

Beispiele

Im folgenden Beispiel wird die Methode UpdateContextNodeProperties definiert, die das ContextNodePropertiesUpdated-Ereignis behandelt. Die Ereignisinformationen werden an das Dokumentmodellobjekt theDocumentModel übergeben.

Dieses Beispiel liefert nicht die Definition des Dokumentmodells und veranschaulicht nicht, wie die übergebenen Informationen verarbeitet werden.

'/ <summary>
'/ Handles the InkAnalyzer.ContextNodePropertiesUpdated event.
'/ </summary>
'/ <param name="sender">The source of the event.</param>
'/ <param name="e">The event data.</param>
Private Sub UpdateContextNodeProperties( _
    ByVal sender As Object, _
    ByVal e As Microsoft.Ink.ContextNodePropertiesUpdatedEventArgs)

    Me.theDocumentModel.UpdateNodeProperties(e.UpdatedNode)

End Sub 'UpdateContextNodeProperties

        /// <summary>
        /// Handles the InkAnalyzer.ContextNodePropertiesUpdated event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The event data.</param>
        private void UpdateContextNodeProperties(
            object sender, Microsoft.Ink.ContextNodePropertiesUpdatedEventArgs e)
        {
            this.theDocumentModel.UpdateNodeProperties(e.UpdatedNode);
        }

Plattformen

Windows Vista

.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.

Versionsinformationen

.NET Framework

Unterstützt in: 3.0

Siehe auch

Referenz

Microsoft.Ink-Namespace