# FarPoint.Win.Spread.DrawingSpace.PSShape.GetTextAndPictureRectangles

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_DrawingSpace_PSShape_GetTextAndPictureRectangles_" data-uid="FarPoint.Win.Spread.DrawingSpace.PSShape.GetTextAndPictureRectangles*">GetTextAndPictureRectangles Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_DrawingSpace_PSShape_GetTextAndPictureRectangles_" data-uid="FarPoint.Win.Spread.DrawingSpace.PSShape.GetTextAndPictureRectangles*"></a>
<h4 id="FarPoint_Win_Spread_DrawingSpace_PSShape_GetTextAndPictureRectangles_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Rectangle__System_Drawing_Rectangle__" data-uid="FarPoint.Win.Spread.DrawingSpace.PSShape.GetTextAndPictureRectangles(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Rectangle@,System.Drawing.Rectangle@)">GetTextAndPictureRectangles(Graphics, Rectangle, ref Rectangle, ref Rectangle)</h4>
<div class="markdown level1 summary"><p>Gets the bounding rectangles for the text and the picture in the presentation space.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override void GetTextAndPictureRectangles(Graphics g, Rectangle r, ref Rectangle rPict, ref Rectangle rText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub GetTextAndPictureRectangles(g As Graphics, r As Rectangle, ByRef rPict As Rectangle, ByRef rText As Rectangle)</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>Graphics device</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">r</span></td>
      <td><p>Bounding rectangle for the shape</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">rPict</span></td>
      <td><p>Bounding rectangle for the picture</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">rText</span></td>
      <td><p>Bounding rectangle for the text</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="../FarPoint.Win/FarPoint.Win.ElementWindowless.GetTextAndPictureRectangles.html#FarPoint_Win_ElementWindowless_GetTextAndPictureRectangles_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Rectangle__System_Drawing_Rectangle__">ElementWindowless.GetTextAndPictureRectangles(Graphics, Rectangle, ref Rectangle, ref Rectangle)</a></div>
</div>
