# FarPoint.Web.Spread.Model.DefaultSheetStyleModel.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor*">DefaultSheetStyleModel Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor">DefaultSheetStyleModel()</h4>
<div class="markdown level1 summary"><p>Creates a style model (DefaultSheetStyleModel object)
with 0 rows, 0 columns, no parent style model, and
a private named styles collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetStyleModel()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor(System.Int32,System.Int32)">DefaultSheetStyleModel(int, int)</h4>
<div class="markdown level1 summary"><p>Creates a style model (DefaultSheetStyle model object)
with the specified number of rows and columns.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetStyleModel(int rowCount, int columnCount)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(rowCount As Integer, columnCount 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">rowCount</span></td>
      <td><p>Number of rows in the model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns in the model</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_System_Int32_System_Int32_FarPoint_Web_Spread_NamedStyleCollection_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor(System.Int32,System.Int32,FarPoint.Web.Spread.NamedStyleCollection)">DefaultSheetStyleModel(int, int, NamedStyleCollection)</h4>
<div class="markdown level1 summary"><p>Creates a style model (DefaultSheetStyle model object)
with the specified number of rows and columns
and named styles collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetStyleModel(int rowCount, int columnCount, NamedStyleCollection namedStyles)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(rowCount As Integer, columnCount As Integer, namedStyles As NamedStyleCollection)</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">rowCount</span></td>
      <td><p>Number of rows in the model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns in the model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.NamedStyleCollection.html">NamedStyleCollection</a></td>
      <td><span class="parametername">namedStyles</span></td>
      <td><p>NamedStyleCollection collection for the style model</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_System_Int32_System_Int32_FarPoint_Web_Spread_Model_ISheetStyleModel_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor(System.Int32,System.Int32,FarPoint.Web.Spread.Model.ISheetStyleModel)">DefaultSheetStyleModel(int, int, ISheetStyleModel)</h4>
<div class="markdown level1 summary"><p>Creates a style model (DefaultSheetStyle model object)<br>
with the specified parent style model and number of rows and columns.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetStyleModel(int rowCount, int columnCount, ISheetStyleModel parent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(rowCount As Integer, columnCount As Integer, parent As ISheetStyleModel)</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">rowCount</span></td>
      <td><p>Number of rows in the model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns in the model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Model.ISheetStyleModel.html">ISheetStyleModel</a></td>
      <td><span class="parametername">parent</span></td>
      <td><p>Parent style model</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_System_Int32_System_Int32_FarPoint_Web_Spread_Model_ISheetStyleModel_FarPoint_Web_Spread_NamedStyleCollection_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor(System.Int32,System.Int32,FarPoint.Web.Spread.Model.ISheetStyleModel,FarPoint.Web.Spread.NamedStyleCollection)">DefaultSheetStyleModel(int, int, ISheetStyleModel, NamedStyleCollection)</h4>
<div class="markdown level1 summary"><p>Creates a style model (DefaultSheetStyle model object)
with the specified parent style model, named styles collection,
and number of rows and columns.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetStyleModel(int rowCount, int columnCount, ISheetStyleModel parent, NamedStyleCollection namedStyles)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(rowCount As Integer, columnCount As Integer, parent As ISheetStyleModel, namedStyles As NamedStyleCollection)</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">rowCount</span></td>
      <td><p>Number of rows in the model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns in the model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Model.ISheetStyleModel.html">ISheetStyleModel</a></td>
      <td><span class="parametername">parent</span></td>
      <td><p>Parent style model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.NamedStyleCollection.html">NamedStyleCollection</a></td>
      <td><span class="parametername">namedStyles</span></td>
      <td><p>NamedStyleCollection collection for the style model</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetStyleModel__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetStyleModel.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">DefaultSheetStyleModel(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Creates a new default sheet style model from deserialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected DefaultSheetStyleModel(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</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.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>Object that holds the serialized object data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>Contextual information about the source of the deserialization</p>
</td>
    </tr>
  </tbody>
</table>
</div>
