Condividi tramite


Proprietà InkOverlaySelectionChangingEventArgs.NewSelection

Aggiornamento: novembre 2007

Ottiene il nuovo insieme Strokes per un evento InkOverlaySelectionChangingEventArgs.

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

Sintassi

'Dichiarazione
Public ReadOnly Property NewSelection As Strokes
'Utilizzo
Dim instance As InkOverlaySelectionChangingEventArgs
Dim value As Strokes

value = instance.NewSelection
public Strokes NewSelection { get; }
public:
property Strokes^ NewSelection {
    Strokes^ get ();
}
/** @property */
public Strokes get_NewSelection()
public function get NewSelection () : Strokes

Valore proprietà

Tipo: Microsoft.Ink.Strokes
Nuovo insieme Strokes.

Esempi

In questo esempio, il gestore eventi SelectionChanging proibisce la selezione di più tratti rimuovendo tutti gli oggetti tranne Stroke dalla selezione corrente.

Private Sub mInkObject_SelectionChanging(ByVal sender As Object, ByVal e As InkOverlaySelectionChangingEventArgs)
    While e.NewSelection.Count > 1
        e.NewSelection.RemoveAt(e.NewSelection.Count - 1)
    End While
End Sub
private void mInkObject_SelectionChanging(object sender, InkOverlaySelectionChangingEventArgs e)
{
    while (e.NewSelection.Count > 1)
    {
        e.NewSelection.RemoveAt(e.NewSelection.Count - 1);
    }
}

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

InkOverlaySelectionChangingEventArgs Classe

Membri InkOverlaySelectionChangingEventArgs

Spazio dei nomi Microsoft.Ink

InkOverlay

InkOverlay.SelectionChanging