# FarPoint.Win.Spread.DrawingSpace.DrawingSurface

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface" class="text-break">DrawingSurface Class
</h1>
  <div class="markdown level0 summary"><p>Represents the drawing surface that handles mouse input and draws graphics objects.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></div>
    <div class="level4"><span class="xref">DrawingSurface</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.idroptarget">IDropTarget</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isynchronizeinvoke">ISynchronizeInvoke</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibindablecomponent">IBindableComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.html">FarPoint.Win.Spread.DrawingSpace</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.Spread.dll</h6>
  <h5 id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DrawingSurface : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DrawingSurface
    Inherits Control
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface__ctor" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.-ctor.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface__ctor">DrawingSurface()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new drawing surface.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_CloseFigures" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.CloseFigures">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.CloseFigures.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_CloseFigures">CloseFigures</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether figures are closed before a new figure is drawn.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_Owner" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.Owner">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.Owner.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the control that owns this drawing surface.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_SelectionRectangle" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.SelectionRectangle">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.SelectionRectangle.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_SelectionRectangle">SelectionRectangle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the group selection rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_SelectionRectangleVisible" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.SelectionRectangleVisible">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.SelectionRectangleVisible.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_SelectionRectangleVisible">SelectionRectangleVisible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the group selection rectangle is displayed.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_Dispose_System_Boolean_" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.Dispose(System.Boolean)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.Dispose.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_DrawGroupSelection_System_Drawing_Graphics_" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.DrawGroupSelection(System.Drawing.Graphics)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.DrawGroupSelection.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_DrawGroupSelection_System_Drawing_Graphics_">DrawGroupSelection(Graphics)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws a group selection rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_Initialize_System_Object_" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.Initialize(System.Object)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.Initialize.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_Initialize_System_Object_">Initialize(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes the drawing surface of the specified control.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_OnMouseDown_System_Windows_Forms_MouseEventArgs_" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.OnMouseDown(System.Windows.Forms.MouseEventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.OnMouseDown.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_OnMouseDown_System_Windows_Forms_MouseEventArgs_">OnMouseDown(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Handles mouse down processing.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_OnMouseMove_System_Windows_Forms_MouseEventArgs_" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.OnMouseMove(System.Windows.Forms.MouseEventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.OnMouseMove.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_OnMouseMove_System_Windows_Forms_MouseEventArgs_">OnMouseMove(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Handles mouse move processing.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_OnMouseUp_System_Windows_Forms_MouseEventArgs_" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.OnMouseUp(System.Windows.Forms.MouseEventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.OnMouseUp.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_OnMouseUp_System_Windows_Forms_MouseEventArgs_">OnMouseUp(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Handles mouse up processing.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_DrawingSpace_DrawingSurface_OnPaint_System_Windows_Forms_PaintEventArgs_" data-uid="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.OnPaint(System.Windows.Forms.PaintEventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.DrawingSpace.DrawingSurface.OnPaint.html#FarPoint_Win_Spread_DrawingSpace_DrawingSurface_OnPaint_System_Windows_Forms_PaintEventArgs_">OnPaint(PaintEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws graphic objects and group selection rectangle (if necessary).</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
