C# Class Nexus.UI.Controls.ReorderableListView

A ListView that allows reordering of the list items.
This items in the view can be reordered by dragging.
Inheritance: Nexus.UI.Controls.IconListView
Afficher le fichier Open project: NexusMods/NexusModManager-4.5

Private Properties

Свойство Type Description
DrawInsertionIndicator void

Méthodes publiques

Méthode Description
ReorderableListView ( ) : System

The default constructor.

Méthodes protégées

Méthode Description
OnDragDrop ( DragEventArgs drgevent ) : void

Raises the Control.DragDrop event of the list view.

This inserts the items being reordered.

OnDragOver ( DragEventArgs drgevent ) : void

Raises the Control.DragOver event of the list view.

This determines the current insertion point of the items being moved. This also causes the insertion line to be drawn.

OnItemDrag ( ItemDragEventArgs e ) : void

Raises the ListView.ItemDrag event of the list view.

This starts the drag/drop reorder operation if at least one item is selected.

OnItemsReordered ( ReorderedItemsEventArgs e ) : void

Raises the ItemsReordered event.

OnItemsReordering ( ReorderingItemsEventArgs e ) : void

Raises the ItemsReordering event.

WndProc ( Message &m ) : void

This handles the windows messages.

This intercepts the windows paint message so that we can do our custom painting.

Private Methods

Méthode Description
DrawInsertionIndicator ( Int32 p_intY ) : void

This draws the insertion line at the given point.

Method Details

OnDragDrop() protected méthode

Raises the Control.DragDrop event of the list view.
This inserts the items being reordered.
protected OnDragDrop ( DragEventArgs drgevent ) : void
drgevent System.Windows.Forms.DragEventArgs A describing the event arguments.
Résultat void

OnDragOver() protected méthode

Raises the Control.DragOver event of the list view.
This determines the current insertion point of the items being moved. This also causes the insertion line to be drawn.
protected OnDragOver ( DragEventArgs drgevent ) : void
drgevent System.Windows.Forms.DragEventArgs A describing the event arguments.
Résultat void

OnItemDrag() protected méthode

Raises the ListView.ItemDrag event of the list view.
This starts the drag/drop reorder operation if at least one item is selected.
protected OnItemDrag ( ItemDragEventArgs e ) : void
e System.Windows.Forms.ItemDragEventArgs An describing the event arguments.
Résultat void

OnItemsReordered() protected méthode

Raises the ItemsReordered event.
protected OnItemsReordered ( ReorderedItemsEventArgs e ) : void
e ReorderedItemsEventArgs An describing the event arguments.
Résultat void

OnItemsReordering() protected méthode

Raises the ItemsReordering event.
protected OnItemsReordering ( ReorderingItemsEventArgs e ) : void
e ReorderingItemsEventArgs An describing the event arguments.
Résultat void

ReorderableListView() public méthode

The default constructor.
public ReorderableListView ( ) : System
Résultat System

WndProc() protected méthode

This handles the windows messages.
This intercepts the windows paint message so that we can do our custom painting.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message The to process.
Résultat void