[]
Represents the drawing surface that handles mouse input and draws graphics objects.
public class DrawingSurface : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Public Class DrawingSurface
Inherits Control
Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Name | Description |
---|---|
DrawingSurface() | Creates a new drawing surface. |
Name | Description |
---|---|
CloseFigures | Gets or sets whether figures are closed before a new figure is drawn. |
Owner | Gets or sets the control that owns this drawing surface. |
SelectionRectangle | Gets or sets the group selection rectangle. |
SelectionRectangleVisible | Gets or sets whether the group selection rectangle is displayed. |
Name | Description |
---|---|
Dispose(bool) | Clean up any resources being used. |
DrawGroupSelection(Graphics) | Draws a group selection rectangle. |
Initialize(object) | Initializes the drawing surface of the specified control. |
OnMouseDown(MouseEventArgs) | Handles mouse down processing. |
OnMouseMove(MouseEventArgs) | Handles mouse move processing. |
OnMouseUp(MouseEventArgs) | Handles mouse up processing. |
OnPaint(PaintEventArgs) | Draws graphic objects and group selection rectangle (if necessary). |