InkOverlaySelectionChangingEventArgs.NewSelection (Propiedad)
Actualización: noviembre 2007
Obtiene la nueva colección Strokes para un evento InkOverlaySelectionChangingEventArgs.
Espacio de nombres: Microsoft.Ink
Ensamblado: Microsoft.Ink (en Microsoft.Ink.dll)
Sintaxis
'Declaración
Public ReadOnly Property NewSelection As Strokes
'Uso
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
Valor de propiedad
Tipo: Microsoft.Ink.Strokes
La nueva colección Strokes.
Ejemplos
En este ejemplo, el controlador de eventos SelectionChanging prohíbe la selección de varios trazos quitando de la selección actual todos los objetos Stroke menos uno.
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);
}
}
Plataformas
Windows Vista
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Información de versión
.NET Framework
Compatible con: 3.0
Vea también
Referencia
InkOverlaySelectionChangingEventArgs (Clase)
InkOverlaySelectionChangingEventArgs (Miembros)