# C1.Pdf.C1PdfDocument.DrawSheet

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Pdf_C1PdfDocument_DrawSheet_" data-uid="C1.Pdf.C1PdfDocument.DrawSheet*">DrawSheet Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Pdf_C1PdfDocument_DrawSheet_" data-uid="C1.Pdf.C1PdfDocument.DrawSheet*"></a>
<h4 id="C1_Pdf_C1PdfDocument_DrawSheet_C1_Excel_XLSheet_System_Drawing_RectangleF_System_Single_" data-uid="C1.Pdf.C1PdfDocument.DrawSheet(C1.Excel.XLSheet,System.Drawing.RectangleF,System.Single)">DrawSheet(XLSheet, RectangleF, float)</h4>
<div class="markdown level1 summary"><p>Draws an Excel sheet in the specified rectangle.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public float DrawSheet(XLSheet sheet, RectangleF rc, float offset = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function DrawSheet(sheet As XLSheet, rc As RectangleF, Optional offset As Single = 0) As Single</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">XLSheet</span></td>
      <td><span class="parametername">sheet</span></td>
      <td><p>The Excel sheet object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> structure that specifies the location of the drawn text, in points from the top left corner of the page.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">offset</span></td>
      <td><p>Offset of the first line to draw (usually the return value of a previous call to <b>DrawSheet</b>).</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><p>The offset of the first line that was not printed because it did not fit in the specified rectangle, or the value of
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single.maxvalue">MaxValue</a> if the entire string was rendered.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
