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
Show file Open project: NexusMods/NexusModManager-4.5

Private Properties

Property Type Description
DrawInsertionIndicator void

Public Methods

Method Description
ReorderableListView ( ) : System

The default constructor.

Protected Methods

Method 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

Method Description
DrawInsertionIndicator ( Int32 p_intY ) : void

This draws the insertion line at the given point.

Method Details

OnDragDrop() protected method

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.
return void

OnDragOver() protected method

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.
return void

OnItemDrag() protected method

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.
return void

OnItemsReordered() protected method

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

OnItemsReordering() protected method

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

ReorderableListView() public method

The default constructor.
public ReorderableListView ( ) : System
return System

WndProc() protected method

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.
return void