# FarPoint.Web.Spread.LayoutTemplate

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_LayoutTemplate" data-uid="FarPoint.Web.Spread.LayoutTemplate" class="text-break">LayoutTemplate Class
</h1>
  <div class="markdown level0 summary"><p>Represents a layout template for the view.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">LayoutTemplate</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.ISerializeSupport.html">ISerializeSupport</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Web.Spread.html">FarPoint.Web.Spread</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Web.Spread.dll</h6>
  <h5 id="FarPoint_Web_Spread_LayoutTemplate_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class LayoutTemplate : ISerializeSupport</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class LayoutTemplate
    Implements ISerializeSupport</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate__ctor" data-uid="FarPoint.Web.Spread.LayoutTemplate.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.-ctor.html#FarPoint_Web_Spread_LayoutTemplate__ctor">LayoutTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new layout template with default values.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_LayoutCells" data-uid="FarPoint.Web.Spread.LayoutTemplate.LayoutCells">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.LayoutCells.html#FarPoint_Web_Spread_LayoutTemplate_LayoutCells">LayoutCells</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the layout cells in the data area of the layout template.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_LayoutRowAxisModel" data-uid="FarPoint.Web.Spread.LayoutTemplate.LayoutRowAxisModel">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.LayoutRowAxisModel.html#FarPoint_Web_Spread_LayoutTemplate_LayoutRowAxisModel">LayoutRowAxisModel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the row information for the layout template.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_LayoutRows" data-uid="FarPoint.Web.Spread.LayoutTemplate.LayoutRows">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.LayoutRows.html#FarPoint_Web_Spread_LayoutTemplate_LayoutRows">LayoutRows</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the layout rows in the data area of the layout template.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_LayoutSpanModel" data-uid="FarPoint.Web.Spread.LayoutTemplate.LayoutSpanModel">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.LayoutSpanModel.html#FarPoint_Web_Spread_LayoutTemplate_LayoutSpanModel">LayoutSpanModel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the spanned cells for the layout template.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_RowCount" data-uid="FarPoint.Web.Spread.LayoutTemplate.RowCount">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.RowCount.html#FarPoint_Web_Spread_LayoutTemplate_RowCount">RowCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of rows for the layout template.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_CreateColumnAxisModel_System_Int32_" data-uid="FarPoint.Web.Spread.LayoutTemplate.CreateColumnAxisModel(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.CreateColumnAxisModel.html#FarPoint_Web_Spread_LayoutTemplate_CreateColumnAxisModel_System_Int32_">CreateColumnAxisModel(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the column axis model for the layout template.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_CreateDataModel_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.LayoutTemplate.CreateDataModel(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.CreateDataModel.html#FarPoint_Web_Spread_LayoutTemplate_CreateDataModel_System_Int32_System_Int32_">CreateDataModel(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a data model for the layout template.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_CreateRowAxisModel_System_Int32_" data-uid="FarPoint.Web.Spread.LayoutTemplate.CreateRowAxisModel(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.CreateRowAxisModel.html#FarPoint_Web_Spread_LayoutTemplate_CreateRowAxisModel_System_Int32_">CreateRowAxisModel(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the row axis model for the layout template.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_CreateSpanModel_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.LayoutTemplate.CreateSpanModel(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.CreateSpanModel.html#FarPoint_Web_Spread_LayoutTemplate_CreateSpanModel_System_Int32_System_Int32_">CreateSpanModel(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the span model for the layout template.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Web.Spread.LayoutTemplate.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.Deserialize.html#FarPoint_Web_Spread_LayoutTemplate_Deserialize_System_Xml_XmlNodeReader_">Deserialize(XmlNodeReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the layout template from XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_OnAddColumns_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.LayoutTemplate.OnAddColumns(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.OnAddColumns.html#FarPoint_Web_Spread_LayoutTemplate_OnAddColumns_System_Int32_System_Int32_">OnAddColumns(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes the addition of columns to the layout template data model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_OnAddRows_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.LayoutTemplate.OnAddRows(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.OnAddRows.html#FarPoint_Web_Spread_LayoutTemplate_OnAddRows_System_Int32_System_Int32_">OnAddRows(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes the addition of rows to the layout template data model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_OnDataModelChanged_System_Object_FarPoint_Web_Spread_Model_SheetDataModelEventArgs_" data-uid="FarPoint.Web.Spread.LayoutTemplate.OnDataModelChanged(System.Object,FarPoint.Web.Spread.Model.SheetDataModelEventArgs)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.OnDataModelChanged.html#FarPoint_Web_Spread_LayoutTemplate_OnDataModelChanged_System_Object_FarPoint_Web_Spread_Model_SheetDataModelEventArgs_">OnDataModelChanged(object, SheetDataModelEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes the change to the layout template data model and synchronizes the models.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_OnRemoveColumns_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.LayoutTemplate.OnRemoveColumns(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.OnRemoveColumns.html#FarPoint_Web_Spread_LayoutTemplate_OnRemoveColumns_System_Int32_System_Int32_">OnRemoveColumns(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes the removal of columns to the layout template data model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_OnRemoveRows_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.LayoutTemplate.OnRemoveRows(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.OnRemoveRows.html#FarPoint_Web_Spread_LayoutTemplate_OnRemoveRows_System_Int32_System_Int32_">OnRemoveRows(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes the removal of rows to the layout template data model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.LayoutTemplate.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.Serialize.html#FarPoint_Web_Spread_LayoutTemplate_Serialize_System_Xml_XmlTextWriter_">Serialize(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the layout template to XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_LayoutTemplate_ToString" data-uid="FarPoint.Web.Spread.LayoutTemplate.ToString">
          <a class="xref" href="FarPoint.Web.Spread.LayoutTemplate.ToString.html#FarPoint_Web_Spread_LayoutTemplate_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this instance.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
