# FarPoint.Web.Spread.NamedStyle

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_NamedStyle" data-uid="FarPoint.Web.Spread.NamedStyle" class="text-break">NamedStyle Class
</h1>
  <div class="markdown level0 summary"><p>Represents a custom style, an object that can be used to set
style information for other 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"><a class="xref" href="FarPoint.Web.Spread.StyleInfo.html">StyleInfo</a></div>
    <div class="level2"><span class="xref">NamedStyle</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.ISerializeSupport2.html">ISerializeSupport2</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icomparable">IComparable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icomparable-1">IComparable</a>&lt;<a class="xref" href="FarPoint.Web.Spread.StyleInfo.html">StyleInfo</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.ICanSerializeXml.html">ICanSerializeXml</a></div>
    <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_NamedStyle_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class NamedStyle : StyleInfo, ICloneable, ISerializeSupport2, IComparable, IComparable&lt;StyleInfo&gt;, ISerializable, ICanSerializeXml, ISerializeSupport</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class NamedStyle
    Inherits StyleInfo
    Implements ICloneable, ISerializeSupport2, IComparable, IComparable(Of StyleInfo), ISerializable, ICanSerializeXml, 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_NamedStyle__ctor" data-uid="FarPoint.Web.Spread.NamedStyle.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.-ctor.html#FarPoint_Web_Spread_NamedStyle__ctor">NamedStyle()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a custom style (NamedStyle object) with no name and no parent.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.NamedStyle.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.-ctor.html#FarPoint_Web_Spread_NamedStyle__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">NamedStyle(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a custom style (NamedStyle object) for sharing settings across models.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle__ctor_System_String_" data-uid="FarPoint.Web.Spread.NamedStyle.#ctor(System.String)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.-ctor.html#FarPoint_Web_Spread_NamedStyle__ctor_System_String_">NamedStyle(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a custom style (NamedStyle object) with the specified name.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle__ctor_System_String_System_String_" data-uid="FarPoint.Web.Spread.NamedStyle.#ctor(System.String,System.String)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.-ctor.html#FarPoint_Web_Spread_NamedStyle__ctor_System_String_System_String_">NamedStyle(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a custom style (NamedStyle object) with the specified name
and parent.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle__ctor_System_String_System_String_FarPoint_Web_Spread_StyleInfo_" data-uid="FarPoint.Web.Spread.NamedStyle.#ctor(System.String,System.String,FarPoint.Web.Spread.StyleInfo)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.-ctor.html#FarPoint_Web_Spread_NamedStyle__ctor_System_String_System_String_FarPoint_Web_Spread_StyleInfo_">NamedStyle(string, string, StyleInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a custom style (NamedStyle object) using the specified StyleInfo object,
name, and parent name.</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_NamedStyle_BackColor" data-uid="FarPoint.Web.Spread.NamedStyle.BackColor">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.BackColor.html#FarPoint_Web_Spread_NamedStyle_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background color for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Background" data-uid="FarPoint.Web.Spread.NamedStyle.Background">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Background.html#FarPoint_Web_Spread_NamedStyle_Background">Background</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Border" data-uid="FarPoint.Web.Spread.NamedStyle.Border">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Border.html#FarPoint_Web_Spread_NamedStyle_Border">Border</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the border for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_CellType" data-uid="FarPoint.Web.Spread.NamedStyle.CellType">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.CellType.html#FarPoint_Web_Spread_NamedStyle_CellType">CellType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the cell type object for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Editor" data-uid="FarPoint.Web.Spread.NamedStyle.Editor">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Editor.html#FarPoint_Web_Spread_NamedStyle_Editor">Editor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the editor for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Font" data-uid="FarPoint.Web.Spread.NamedStyle.Font">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Font.html#FarPoint_Web_Spread_NamedStyle_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the font for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_ForeColor" data-uid="FarPoint.Web.Spread.NamedStyle.ForeColor">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.ForeColor.html#FarPoint_Web_Spread_NamedStyle_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text color for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Formatter" data-uid="FarPoint.Web.Spread.NamedStyle.Formatter">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Formatter.html#FarPoint_Web_Spread_NamedStyle_Formatter">Formatter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the formatter for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_HorizontalAlign" data-uid="FarPoint.Web.Spread.NamedStyle.HorizontalAlign">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.HorizontalAlign.html#FarPoint_Web_Spread_NamedStyle_HorizontalAlign">HorizontalAlign</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the horizontal alignment for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_ImeMode" data-uid="FarPoint.Web.Spread.NamedStyle.ImeMode">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.ImeMode.html#FarPoint_Web_Spread_NamedStyle_ImeMode">ImeMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the state of an Input Method Editor (IME) of the cell for the style</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Locked" data-uid="FarPoint.Web.Spread.NamedStyle.Locked">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Locked.html#FarPoint_Web_Spread_NamedStyle_Locked">Locked</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether this style permits a cell to be edited.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Name" data-uid="FarPoint.Web.Spread.NamedStyle.Name">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Name.html#FarPoint_Web_Spread_NamedStyle_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Parent" data-uid="FarPoint.Web.Spread.NamedStyle.Parent">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Parent.html#FarPoint_Web_Spread_NamedStyle_Parent">Parent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the parent for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Renderer" data-uid="FarPoint.Web.Spread.NamedStyle.Renderer">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Renderer.html#FarPoint_Web_Spread_NamedStyle_Renderer">Renderer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the renderer for the style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_VerticalAlign" data-uid="FarPoint.Web.Spread.NamedStyle.VerticalAlign">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.VerticalAlign.html#FarPoint_Web_Spread_NamedStyle_VerticalAlign">VerticalAlign</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical alignment for the style.</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_NamedStyle_Clone" data-uid="FarPoint.Web.Spread.NamedStyle.Clone">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Clone.html#FarPoint_Web_Spread_NamedStyle_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and returns a copy of this object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_CopyFrom_System_Object_" data-uid="FarPoint.Web.Spread.NamedStyle.CopyFrom(System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.CopyFrom.html#FarPoint_Web_Spread_NamedStyle_CopyFrom_System_Object_">CopyFrom(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the properties of the specified object to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Web.Spread.NamedStyle.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Deserialize.html#FarPoint_Web_Spread_NamedStyle_Deserialize_System_Xml_XmlNodeReader_">Deserialize(XmlNodeReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the style object from XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Equals_System_Object_" data-uid="FarPoint.Web.Spread.NamedStyle.Equals(System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Equals.html#FarPoint_Web_Spread_NamedStyle_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether another object is a reference to this object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_GetHashCode" data-uid="FarPoint.Web.Spread.NamedStyle.GetHashCode">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.GetHashCode.html#FarPoint_Web_Spread_NamedStyle_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the hash code of this object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.NamedStyle.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.GetObjectData.html#FarPoint_Web_Spread_NamedStyle_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Populates the SerializationInfo class with information
about the style settings.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_OnChanged_System_EventArgs_" data-uid="FarPoint.Web.Spread.NamedStyle.OnChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.OnChanged.html#FarPoint_Web_Spread_NamedStyle_OnChanged_System_EventArgs_">OnChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the Changed event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Reset" data-uid="FarPoint.Web.Spread.NamedStyle.Reset">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Reset.html#FarPoint_Web_Spread_NamedStyle_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets all the named style properties to their default values.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Reset_FarPoint_Web_Spread_SheetStyleProperty_" data-uid="FarPoint.Web.Spread.NamedStyle.Reset(FarPoint.Web.Spread.SheetStyleProperty)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Reset.html#FarPoint_Web_Spread_NamedStyle_Reset_FarPoint_Web_Spread_SheetStyleProperty_">Reset(SheetStyleProperty)</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the specified property to the default setting (not set).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_ResetName" data-uid="FarPoint.Web.Spread.NamedStyle.ResetName">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.ResetName.html#FarPoint_Web_Spread_NamedStyle_ResetName">ResetName()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the name of the style to the default (String.Empty).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.NamedStyle.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Serialize.html#FarPoint_Web_Spread_NamedStyle_Serialize_System_Xml_XmlTextWriter_">Serialize(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the style object to XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_ToString" data-uid="FarPoint.Web.Spread.NamedStyle.ToString">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.ToString.html#FarPoint_Web_Spread_NamedStyle_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value of the Name property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_NamedStyle_Changed" data-uid="FarPoint.Web.Spread.NamedStyle.Changed">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.Changed.html">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the named style has changed.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</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_NamedStyle_op_Equality_FarPoint_Web_Spread_NamedStyle_System_Object_" data-uid="FarPoint.Web.Spread.NamedStyle.op_Equality(FarPoint.Web.Spread.NamedStyle,System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.op_Equality.html#FarPoint_Web_Spread_NamedStyle_op_Equality_FarPoint_Web_Spread_NamedStyle_System_Object_">operator ==(NamedStyle, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether two styles (a specified object and a NamedStyle object) are equal.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_NamedStyle_op_Inequality_FarPoint_Web_Spread_NamedStyle_System_Object_" data-uid="FarPoint.Web.Spread.NamedStyle.op_Inequality(FarPoint.Web.Spread.NamedStyle,System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.NamedStyle.op_Inequality.html#FarPoint_Web_Spread_NamedStyle_op_Inequality_FarPoint_Web_Spread_NamedStyle_System_Object_">operator !=(NamedStyle, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether two styles (a specified object and a NamedStyle object) are not equal.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
