C# Class SourceGrid.Controllers.SelectionDrag

Controller to support drag operations. To enable drag and drop operations on a grid you can use this code: dataGrid.GridController.AddController(SourceGrid.Controllers.SelectionDrag.Copy); dataGrid.GridController.AddController(SourceGrid.Controllers.SelectionDrop.Default);
Inheritance: GridBase
Datei anzeigen Open project: zhuangyy/Motion

Public Properties

Property Type Description
Copy SelectionDrag
Cut SelectionDrag

Public Methods

Method Description
SelectionDrag ( ) : System
SelectionDrag ( CutMode cutMode ) : System

Protected Methods

Method Description
OnAttach ( GridVirtual grid ) : void
OnDetach ( GridVirtual grid ) : void
grid_MouseDown ( GridVirtual sender, MouseEventArgs e ) : void
grid_MouseLeave ( GridVirtual sender, EventArgs e ) : void
grid_MouseMove ( GridVirtual sender, MouseEventArgs e ) : void

Private Methods

Method Description
grid_GiveFeedback ( GridVirtual sender, System.Windows.Forms.GiveFeedbackEventArgs e ) : void

Method Details

OnAttach() protected method

protected OnAttach ( GridVirtual grid ) : void
grid GridVirtual
return void

OnDetach() protected method

protected OnDetach ( GridVirtual grid ) : void
grid GridVirtual
return void

SelectionDrag() public method

public SelectionDrag ( ) : System
return System

SelectionDrag() public method

public SelectionDrag ( CutMode cutMode ) : System
cutMode CutMode
return System

grid_MouseDown() protected method

protected grid_MouseDown ( GridVirtual sender, MouseEventArgs e ) : void
sender GridVirtual
e System.Windows.Forms.MouseEventArgs
return void

grid_MouseLeave() protected method

protected grid_MouseLeave ( GridVirtual sender, EventArgs e ) : void
sender GridVirtual
e System.EventArgs
return void

grid_MouseMove() protected method

protected grid_MouseMove ( GridVirtual sender, MouseEventArgs e ) : void
sender GridVirtual
e System.Windows.Forms.MouseEventArgs
return void

Property Details

Copy public_oe static_oe property

Create a selection drag controller for copy operations. (CutMode.None)
public static SelectionDrag,SourceGrid.Controllers Copy
return SelectionDrag

Cut public_oe static_oe property

Create a selection drag controller for cut operations. (CutMode.CutOnPaste)
public static SelectionDrag,SourceGrid.Controllers Cut
return SelectionDrag