# FarPoint.Web.Spread.DefaultStyleCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_DefaultStyleCollection" data-uid="FarPoint.Web.Spread.DefaultStyleCollection" class="text-break">DefaultStyleCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents the read-only collection of default NamedStyle objects.</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">DefaultStyleCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</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_DefaultStyleCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class DefaultStyleCollection : IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class DefaultStyleCollection
    Implements IList, ICollection, IEnumerable</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_DefaultStyleCollection__ctor" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.-ctor.html#FarPoint_Web_Spread_DefaultStyleCollection__ctor">DefaultStyleCollection()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</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_DefaultStyleCollection_ColumnFooterDefault" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.ColumnFooterDefault">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.ColumnFooterDefault.html">ColumnFooterDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default style for row header cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_ColumnHeaderDefault" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.ColumnHeaderDefault">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.ColumnHeaderDefault.html">ColumnHeaderDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default style for column header cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_CornerDefault" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.CornerDefault">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.CornerDefault.html">CornerDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default style for corner header cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_DataAreaDefault" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.DataAreaDefault">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.DataAreaDefault.html">DataAreaDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default style for data area cells in the sheet.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_DataAreaDefault2" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.DataAreaDefault2">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.DataAreaDefault2.html">DataAreaDefault2</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default style for data area cells in the sheet with padding.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_FilterBarDefault" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.FilterBarDefault">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.FilterBarDefault.html">FilterBarDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default style for the filter bar.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_HeaderDefault" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.HeaderDefault">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.HeaderDefault.html">HeaderDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default style for header cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_RowHeaderDefault" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.RowHeaderDefault">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.RowHeaderDefault.html">RowHeaderDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default style for row header cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_Styles" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.Styles">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.Styles.html">Styles</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the array of NamedStyle objects that contain the default styles.</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_DefaultStyleCollection_Count" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.Count">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.Count.html#FarPoint_Web_Spread_DefaultStyleCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of NamedStyle objects in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_IsFixedSize" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.IsFixedSize">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.IsFixedSize.html#FarPoint_Web_Spread_DefaultStyleCollection_IsFixedSize">IsFixedSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the collection has a fixed size.</p>
<p>(This implementation always returns false.)</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_IsReadOnly" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.IsReadOnly">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.IsReadOnly.html#FarPoint_Web_Spread_DefaultStyleCollection_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the collection is read-only.</p>
<p>(This implementation always returns true.)</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_IsSynchronized" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.IsSynchronized">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.IsSynchronized.html#FarPoint_Web_Spread_DefaultStyleCollection_IsSynchronized">IsSynchronized</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether access to the collection is synchronized.</p>
<p>(This implementation always returns false.)</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_Item_System_Int32_" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.Item(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.Item.html#FarPoint_Web_Spread_DefaultStyleCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the NamedStyle object at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_SyncRoot" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.SyncRoot">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.SyncRoot.html#FarPoint_Web_Spread_DefaultStyleCollection_SyncRoot">SyncRoot</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a NamedStyleCollection object that can be used to
synchronize access to the collection.</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_DefaultStyleCollection_Add_FarPoint_Web_Spread_NamedStyle_" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.Add(FarPoint.Web.Spread.NamedStyle)">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.Add.html#FarPoint_Web_Spread_DefaultStyleCollection_Add_FarPoint_Web_Spread_NamedStyle_">Add(NamedStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Not supported; calling this method throws an exception because the collection is read-only.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_Compose_System_Object_FarPoint_Web_Spread_StyleInfo_" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.Compose(System.Object,FarPoint.Web.Spread.StyleInfo)">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.Compose.html#FarPoint_Web_Spread_DefaultStyleCollection_Compose_System_Object_FarPoint_Web_Spread_StyleInfo_">Compose(object, StyleInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Composes a style using the default styles and
a specified StyleInfo object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_Contains_FarPoint_Web_Spread_NamedStyle_" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.Contains(FarPoint.Web.Spread.NamedStyle)">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.Contains.html#FarPoint_Web_Spread_DefaultStyleCollection_Contains_FarPoint_Web_Spread_NamedStyle_">Contains(NamedStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the collection contains the specified style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_CopyTo_FarPoint_Web_Spread_NamedStyle___System_Int32_" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.CopyTo(FarPoint.Web.Spread.NamedStyle[],System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.CopyTo.html#FarPoint_Web_Spread_DefaultStyleCollection_CopyTo_FarPoint_Web_Spread_NamedStyle___System_Int32_">CopyTo(NamedStyle[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the styles in the collection to a specified array at a specified location.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_CopyTo_System_Array_System_Int32_" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.CopyTo(System.Array,System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.CopyTo.html#FarPoint_Web_Spread_DefaultStyleCollection_CopyTo_System_Array_System_Int32_">CopyTo(Array, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the styles in the collection to a specified array at a specified location.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_Find_System_String_" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.Find(System.String)">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.Find.html#FarPoint_Web_Spread_DefaultStyleCollection_Find_System_String_">Find(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Finds a style with the specified name in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_GetEnumerator" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.GetEnumerator">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.GetEnumerator.html#FarPoint_Web_Spread_DefaultStyleCollection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an IEnumerator object for enumerating through the NamedStyle objects
in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_IndexOf_FarPoint_Web_Spread_NamedStyle_" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.IndexOf(FarPoint.Web.Spread.NamedStyle)">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.IndexOf.html#FarPoint_Web_Spread_DefaultStyleCollection_IndexOf_FarPoint_Web_Spread_NamedStyle_">IndexOf(NamedStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the index of the specified NamedStyle object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_Insert_System_Int32_FarPoint_Web_Spread_NamedStyle_" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.Insert(System.Int32,FarPoint.Web.Spread.NamedStyle)">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.Insert.html#FarPoint_Web_Spread_DefaultStyleCollection_Insert_System_Int32_FarPoint_Web_Spread_NamedStyle_">Insert(int, NamedStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Not supported; calling this method throws an exception because the collection is read-only.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DefaultStyleCollection_Remove_FarPoint_Web_Spread_NamedStyle_" data-uid="FarPoint.Web.Spread.DefaultStyleCollection.Remove(FarPoint.Web.Spread.NamedStyle)">
          <a class="xref" href="FarPoint.Web.Spread.DefaultStyleCollection.Remove.html#FarPoint_Web_Spread_DefaultStyleCollection_Remove_FarPoint_Web_Spread_NamedStyle_">Remove(NamedStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Not supported; calling this method throws an exception because the collection is read-only.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
