# GrapeCity.Spreadsheet.Printing.PrintingContext

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_Printing_PrintingContext" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext" class="text-break">PrintingContext Class
</h1>
  <div class="markdown level0 summary"><p>Represents visual content using draw, push, and pop commands.</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"><span class="xref">PrintingContext</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="GrapeCity.Spreadsheet.Printing.IMergeCellSupport.html">IMergeCellSupport</a></div>
    <div><a class="xref" href="GrapeCity.Spreadsheet.Printing.IWorksheetNavigator.html">IWorksheetNavigator</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.Printing.html">GrapeCity.Spreadsheet.Printing</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_Printing_PrintingContext_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class PrintingContext : IDisposable, IMergeCellSupport, IWorksheetNavigator</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class PrintingContext
    Implements IDisposable, IMergeCellSupport, IWorksheetNavigator</code></pre>
  </div>
  <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="GrapeCity_Spreadsheet_Printing_PrintingContext_DrawingContext" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.DrawingContext">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.DrawingContext.html#GrapeCity_Spreadsheet_Printing_PrintingContext_DrawingContext">DrawingContext</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the drawing context using draw commands.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Printing_PrintingContext_Page" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.Page">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.Page.html#GrapeCity_Spreadsheet_Printing_PrintingContext_Page">Page</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the document page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Printing_PrintingContext_Workbook" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.Workbook">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.Workbook.html#GrapeCity_Spreadsheet_Printing_PrintingContext_Workbook">Workbook</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the painting workbook.</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="GrapeCity_Spreadsheet_Printing_PrintingContext_Dispose" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.Dispose">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.Dispose.html#GrapeCity_Spreadsheet_Printing_PrintingContext_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Printing_PrintingContext_Dispose_System_Boolean_" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.Dispose(System.Boolean)">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.Dispose.html#GrapeCity_Spreadsheet_Printing_PrintingContext_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases unmanaged and managed resources.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Printing_PrintingContext_DrawImage_System_IO_Stream_GrapeCity_Drawing_Rectangle_GrapeCity_CalcEngine_SizingMode_System_Nullable_GrapeCity_Drawing_Rectangle__GrapeCity_Drawing_RectAlignment_" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.DrawImage(System.IO.Stream,GrapeCity.Drawing.Rectangle,GrapeCity.CalcEngine.SizingMode,System.Nullable{GrapeCity.Drawing.Rectangle},GrapeCity.Drawing.RectAlignment)">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.DrawImage.html#GrapeCity_Spreadsheet_Printing_PrintingContext_DrawImage_System_IO_Stream_GrapeCity_Drawing_Rectangle_GrapeCity_CalcEngine_SizingMode_System_Nullable_GrapeCity_Drawing_Rectangle__GrapeCity_Drawing_RectAlignment_">DrawImage(Stream, Rectangle, SizingMode, Rectangle?, RectAlignment)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws an image into the region defined by the specified <span class="xref">GrapeCity.Drawing.Rectangle</span>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Printing_PrintingContext_DrawImage_System_String_GrapeCity_Drawing_Rectangle_GrapeCity_CalcEngine_SizingMode_System_Nullable_GrapeCity_Drawing_Rectangle__GrapeCity_Drawing_RectAlignment_" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.DrawImage(System.String,GrapeCity.Drawing.Rectangle,GrapeCity.CalcEngine.SizingMode,System.Nullable{GrapeCity.Drawing.Rectangle},GrapeCity.Drawing.RectAlignment)">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.DrawImage.html#GrapeCity_Spreadsheet_Printing_PrintingContext_DrawImage_System_String_GrapeCity_Drawing_Rectangle_GrapeCity_CalcEngine_SizingMode_System_Nullable_GrapeCity_Drawing_Rectangle__GrapeCity_Drawing_RectAlignment_">DrawImage(string, Rectangle, SizingMode, Rectangle?, RectAlignment)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws an image into the region defined by the specified <span class="xref">GrapeCity.Drawing.Rectangle</span>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Printing_PrintingContext_DrawText_System_String_GrapeCity_Spreadsheet_Font_GrapeCity_Drawing_Rectangle_GrapeCity_Drawing_Rectangle_GrapeCity_Spreadsheet_HorizontalAlignment_GrapeCity_Spreadsheet_VerticalAlignment_System_Boolean_System_Int32_System_Boolean_" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.DrawText(System.String,GrapeCity.Spreadsheet.Font,GrapeCity.Drawing.Rectangle,GrapeCity.Drawing.Rectangle,GrapeCity.Spreadsheet.HorizontalAlignment,GrapeCity.Spreadsheet.VerticalAlignment,System.Boolean,System.Int32,System.Boolean)">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.DrawText.html#GrapeCity_Spreadsheet_Printing_PrintingContext_DrawText_System_String_GrapeCity_Spreadsheet_Font_GrapeCity_Drawing_Rectangle_GrapeCity_Drawing_Rectangle_GrapeCity_Spreadsheet_HorizontalAlignment_GrapeCity_Spreadsheet_VerticalAlignment_System_Boolean_System_Int32_System_Boolean_">DrawText(string, Font, Rectangle, Rectangle, HorizontalAlignment, VerticalAlignment, bool, int, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws the specified text string in the specified rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Printing_PrintingContext_MeasureText_System_String_GrapeCity_Spreadsheet_Font_GrapeCity_Drawing_Size_System_Boolean_" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.MeasureText(System.String,GrapeCity.Spreadsheet.Font,GrapeCity.Drawing.Size,System.Boolean)">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.MeasureText.html#GrapeCity_Spreadsheet_Printing_PrintingContext_MeasureText_System_String_GrapeCity_Spreadsheet_Font_GrapeCity_Drawing_Size_System_Boolean_">MeasureText(string, Font, Size, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Measures the specified text string when drawn with the specified <span class="xref">GrapeCity.Spreadsheet.Font</span>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Printing_PrintingContext_Pop" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.Pop">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.Pop.html#GrapeCity_Spreadsheet_Printing_PrintingContext_Pop">Pop()</a>
        </td>
        <td class="markdown level1 summary"><p>Pops the last operation that was pushed onto the drawing context.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Printing_PrintingContext_PushClip_GrapeCity_Drawing_Rectangle_" data-uid="GrapeCity.Spreadsheet.Printing.PrintingContext.PushClip(GrapeCity.Drawing.Rectangle)">
          <a class="xref" href="GrapeCity.Spreadsheet.Printing.PrintingContext.PushClip.html#GrapeCity_Spreadsheet_Printing_PrintingContext_PushClip_GrapeCity_Drawing_Rectangle_">PushClip(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Pushes the specified clip rectangle onto the drawing context.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
