Condividi tramite


Proprietà ContextNodeMovingToPositionEventArgs.NewIndex

Aggiornamento: novembre 2007

Ottiene l'indice in cui l'oggetto InkAnalyzer sta spostando l'oggetto ContextNode.

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

Sintassi

'Dichiarazione
Public ReadOnly Property NewIndex As Integer
'Utilizzo
Dim instance As ContextNodeMovingToPositionEventArgs
Dim value As Integer

value = instance.NewIndex
public int NewIndex { get; }
public:
property int NewIndex {
    int get ();
}
/** @property */
public int get_NewIndex()
public function get NewIndex () : int

Valore proprietà

Tipo: System.Int32
Indice in cui l'oggetto InkAnalyzer sta spostando l'oggetto ContextNode.

Esempi

Nell'esempio seguente viene definito il metodo, MoveContextNodeToPosition, che gestisce l'evento ContextNodeMovingToPosition. 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.ContextNodeMovingToPosition event.
'/ </summary>
'/ <param name="sender">The source of the event.</param>
'/ <param name="e">The event data.</param>
Private Sub MoveContextNodeToPosition( _
    ByVal sender As Object, _
    ByVal e As Microsoft.Ink.ContextNodeMovingToPositionEventArgs)

    Me.theDocumentModel.MoveNode(e.SubNodeToMove, e.NewIndex)

End Sub 'MoveContextNodeToPosition

        /// <summary>
        /// Handles the InkAnalyzer.ContextNodeMovingToPosition event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The event data.</param>
        private void MoveContextNodeToPosition(
            object sender, Microsoft.Ink.ContextNodeMovingToPositionEventArgs e)
        {
            this.theDocumentModel.MoveNode(e.SubNodeToMove, e.NewIndex);
        }

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

ContextNodeMovingToPositionEventArgs Classe

Membri ContextNodeMovingToPositionEventArgs

Spazio dei nomi Microsoft.Ink