Freigeben über


InkOverlaySelectionChangingEventArgs.NewSelection-Eigenschaft

Ruft die neue Strokes-Auflistung für ein InkOverlaySelectionChangingEventArgs-Ereignis ab.

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

Syntax

'Declaration
Public ReadOnly Property NewSelection As Strokes
'Usage
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

Eigenschaftenwert

Typ: Microsoft.Ink.Strokes
Die neue Strokes-Auflistung.

Beispiele

In diesem Beispiel wird im SelectionChanging-Ereignishandler verhindert, dass mehrere Striche ausgewählt werden, indem alle Stroke-Objekte bis auf eines aus der aktuellen Auswahl entfernt werden.

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);
    }
}

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

InkOverlaySelectionChangingEventArgs-Klasse

InkOverlaySelectionChangingEventArgs-Member

Microsoft.Ink-Namespace

InkOverlay

InkOverlay.SelectionChanging