# FarPoint.Web.Spread.Model.DefaultSheetStyleModel.SetDirectAltRowInfo

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel_SetDirectAltRowInfo_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.SetDirectAltRowInfo*">SetDirectAltRowInfo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel_SetDirectAltRowInfo_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.SetDirectAltRowInfo*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel_SetDirectAltRowInfo_System_Int32_FarPoint_Web_Spread_StyleInfo_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.SetDirectAltRowInfo(System.Int32,FarPoint.Web.Spread.StyleInfo)">SetDirectAltRowInfo(int, StyleInfo)</h4>
<div class="markdown level1 summary"><p>Sets the specified alternating row style in the model.</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 SetDirectAltRowInfo(int index, StyleInfo info)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub SetDirectAltRowInfo(index As Integer, info As StyleInfo)</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>Index of the alternating row style to set</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.StyleInfo.html">StyleInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>Style object set</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="FarPoint.Web.Spread.Model.BaseSheetStyleModel.SetDirectAltRowInfo.html#FarPoint_Web_Spread_Model_BaseSheetStyleModel_SetDirectAltRowInfo_System_Int32_FarPoint_Web_Spread_StyleInfo_">BaseSheetStyleModel.SetDirectAltRowInfo(int, StyleInfo)</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.indexoutofrangeexception">IndexOutOfRangeException</a></td>
      <td><p>Specified style index is not valid; must be between 0 and the total number of styles</p>
</td>
    </tr>
  </tbody>
</table>
</div>
