# FarPoint.Win.Spread.SheetView.GetPreferredRowHeight

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_GetPreferredRowHeight_" data-uid="FarPoint.Win.Spread.SheetView.GetPreferredRowHeight*">GetPreferredRowHeight Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_GetPreferredRowHeight_" data-uid="FarPoint.Win.Spread.SheetView.GetPreferredRowHeight*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_GetPreferredRowHeight_System_Int32_" data-uid="FarPoint.Win.Spread.SheetView.GetPreferredRowHeight(System.Int32)">GetPreferredRowHeight(int)</h4>
<div class="markdown level1 summary"><p>Gets the height in pixels of the tallest cell (based on text content) in the specified row on this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public float GetPreferredRowHeight(int row)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPreferredRowHeight(row As Integer) 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index</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 height in pixels of the tallest cell (based on text content) in the specified row.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_GetPreferredRowHeight_" data-uid="FarPoint.Win.Spread.SheetView.GetPreferredRowHeight*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_GetPreferredRowHeight_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.GetPreferredRowHeight(System.Int32,System.Boolean)">GetPreferredRowHeight(int, bool)</h4>
<div class="markdown level1 summary"><p>Gets the height in pixels of the tallest cell (based on text content) in the specified row on this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public float GetPreferredRowHeight(int row, bool ignoreHeaders)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPreferredRowHeight(row As Integer, ignoreHeaders As Boolean) 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ignoreHeaders</span></td>
      <td><p>Whether to ignore the row header cells</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 height in pixels of the tallest cell (based on text content) in the specified row.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_GetPreferredRowHeight_" data-uid="FarPoint.Win.Spread.SheetView.GetPreferredRowHeight*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_GetPreferredRowHeight_System_Int32_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.GetPreferredRowHeight(System.Int32,System.Boolean,System.Boolean)">GetPreferredRowHeight(int, bool, bool)</h4>
<div class="markdown level1 summary"><p>Gets the height in pixels of the tallest cell (based on text content) in the specified row on this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public float GetPreferredRowHeight(int row, bool ignoreHeaders, bool ignoreSpans)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPreferredRowHeight(row As Integer, ignoreHeaders As Boolean, ignoreSpans As Boolean) 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ignoreHeaders</span></td>
      <td><p>Whether to ignore the row header cells</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ignoreSpans</span></td>
      <td><p>Whether to ignore spans</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 height in pixels of the tallest cell (based on text content) in the specified row.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_GetPreferredRowHeight_" data-uid="FarPoint.Win.Spread.SheetView.GetPreferredRowHeight*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_GetPreferredRowHeight_System_Int32_FarPoint_Win_Spread_PreferredSizeRowOptions_" data-uid="FarPoint.Win.Spread.SheetView.GetPreferredRowHeight(System.Int32,FarPoint.Win.Spread.PreferredSizeRowOptions)">GetPreferredRowHeight(int, PreferredSizeRowOptions)</h4>
<div class="markdown level1 summary"><p>Gets the height in pixels of the tallest cell (based on text content) in the specified row on this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public float GetPreferredRowHeight(int row, PreferredSizeRowOptions flags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPreferredRowHeight(row As Integer, flags As PreferredSizeRowOptions) 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.PreferredSizeRowOptions.html">PreferredSizeRowOptions</a></td>
      <td><span class="parametername">flags</span></td>
      <td><p>Options when getting the preferred height</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 height in pixels of the tallest cell (based on text content) in the specified row.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
