Skybound AutoComplete

DeleteEventArgs Class

Provides data for the DeleteEventHandler method.

For a list of all members of this type, see DeleteEventArgs Members.

System.Object
   System.EventArgs
      Skybound.AutoComplete.AutoCompleteEventArgs
         Skybound.AutoComplete.DeleteEventArgs

[Visual Basic]
Public Class DeleteEventArgs
    Inherits AutoCompleteEventArgs
[C#]
public class DeleteEventArgs : AutoCompleteEventArgs

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The DeleteEventArgs type provides a string representation of the item that was selected when the delete key was pressed, and a method to automatically delete the item (when it exists in the Items collection).

Example

This example handles the Delete event to remove an item from the list when delete is pressed.

[C#]

private void autoCompleteManager1_Delete(
    object sender, Skybound.AutoComplete.DeleteEventArgs e)
{
    e.DeleteItem();
}

[Visual Basic]

Private Sub AutoCompleteManager1_Delete( _
  sender As Object, e As Skybound.AutoComplete.DeleteEventArgs) _
  Handles AutoCompleteManager1.Delete
    
    ' Delete the item from the Items collection
    e.DeleteItem
    
End Sub

Requirements

Namespace: Skybound.AutoComplete

Assembly: Skybound.AutoComplete (in Skybound.AutoComplete.dll)

See Also

DeleteEventArgs Members | Skybound.AutoComplete Namespace