[]
        
(Showing Draft Content)

FarPoint.Win.Spread.DrawingSpace.DrawingSurface

DrawingSurface Class

Represents the drawing surface that handles mouse input and draws graphics objects.

Inheritance
DrawingSurface
Namespace: FarPoint.Win.Spread.DrawingSpace
Assembly: FarPoint.Win.Spread.dll
Syntax
public class DrawingSurface : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Public Class DrawingSurface
    Inherits Control
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable

Constructors

Name Description
DrawingSurface()

Creates a new drawing surface.

Properties

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.

Methods

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).