Hi Truman,
Looks like your question was about changing the outline rectangle that Essential Diagram renders during a drag-drop operation.
The drag rectangle that you notice over the Diagram control is rendered through the Diagram.StartDragRect(int x, int y, int width, int height), Diagram.UpdateDragRect(int x, int y) and Diagram.EraseDragRect() methods present in the Syncfusion.Windows.Forms.Diagram.Controls.Diagram class that implements the Diagram control type. Unfortunately, these methods are all marked as private and in order to override the drawing you will have to first override the Diagram.OnDragEnter(System.Windows.Forms.DragEventArgs e), Diagram.OnDragOver(System.Windows.Forms.DragEventArgs e) and Diagram.OnDragLeave(System.EventArgs e) methods from which the above XXXDragRect(...) methods are invoked, copy/paste the base implementation and use your custom drawing methods in place of the Start/Update/EraseDragRect(...) drawing routines.
If you do not have the source code version of Essential Diagram and would like to take a look at the base implementation for help with your custom code, please send an email to ''
[email protected]'' with a reference to this forum post.
Regards,
Prakash
Syncfusion, Inc.