# FarPoint.Win.Spread.NamedStyle.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_NamedStyle__ctor_" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor*">NamedStyle Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_NamedStyle__ctor_" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_NamedStyle__ctor" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor">NamedStyle()</h4>
<div class="markdown level1 summary"><p>Creates a custom style (NamedStyle object) with no name and no parent.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public NamedStyle()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Win_Spread_NamedStyle__ctor_" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_NamedStyle__ctor_System_String_" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor(System.String)">NamedStyle(string)</h4>
<div class="markdown level1 summary"><p>Creates a custom style (NamedStyle object) with the specified name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public NamedStyle(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String)</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>Name of the new NamedStyle object</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_NamedStyle__ctor_" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_NamedStyle__ctor_System_String_System_String_" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor(System.String,System.String)">NamedStyle(string, string)</h4>
<div class="markdown level1 summary"><p>Creates a custom style (NamedStyle object) with the specified name
and parent.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public NamedStyle(string name, string parentName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, parentName As String)</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>Name of the new NamedStyle object</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">parentName</span></td>
      <td><p>Parent of the new NamedStyle object</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_NamedStyle__ctor_" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_NamedStyle__ctor_System_String_System_String_FarPoint_Win_Spread_StyleInfo_" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor(System.String,System.String,FarPoint.Win.Spread.StyleInfo)">NamedStyle(string, string, StyleInfo)</h4>
<div class="markdown level1 summary"><p>Creates a custom style (NamedStyle object) using the specified StyleInfo object,
name, and parent name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public NamedStyle(string name, string parentName, StyleInfo style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, parentName As String, style 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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>Name of the new style (NamedStyle object)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">parentName</span></td>
      <td><p>Parent of the new style (NamedStyle object)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.StyleInfo.html">StyleInfo</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>StyleInfo object</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_NamedStyle__ctor_" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_NamedStyle__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.NamedStyle.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">NamedStyle(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Creates a custom style (NamedStyle object) for sharing settings across models.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected NamedStyle(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>SerializationInfo</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>StreamingContext</p>
</td>
    </tr>
  </tbody>
</table>
</div>
