# FarPoint.Win.Spread.Model.DefaultSheetAxisModel.SetSize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Model_DefaultSheetAxisModel_SetSize_" data-uid="FarPoint.Win.Spread.Model.DefaultSheetAxisModel.SetSize*">SetSize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Model_DefaultSheetAxisModel_SetSize_" data-uid="FarPoint.Win.Spread.Model.DefaultSheetAxisModel.SetSize*"></a>
<h4 id="FarPoint_Win_Spread_Model_DefaultSheetAxisModel_SetSize_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.Model.DefaultSheetAxisModel.SetSize(System.Int32,System.Int32)">SetSize(int, int)</h4>
<div class="markdown level1 summary"><p>Sets the size of the specified row or column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void SetSize(int index, int value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub SetSize(index As Integer, value As Integer)</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">index</span></td>
      <td><p>Row or column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Size in pixels</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="FarPoint.Win.Spread.Model.BaseSheetAxisModel.SetSize.html#FarPoint_Win_Spread_Model_BaseSheetAxisModel_SetSize_System_Int32_System_Int32_">BaseSheetAxisModel.SetSize(int, int)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Specified size is not valid; must be greater than or equal to zero</p>
</td>
    </tr>
  </tbody>
</table>
</div>
