# FarPoint.Web.Spread.Model.Serializer.SerializeStyles

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_Model_Serializer_SerializeStyles_" data-uid="FarPoint.Web.Spread.Model.Serializer.SerializeStyles*">SerializeStyles Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_Model_Serializer_SerializeStyles_" data-uid="FarPoint.Web.Spread.Model.Serializer.SerializeStyles*"></a>
<h4 id="FarPoint_Web_Spread_Model_Serializer_SerializeStyles_System_Object_System_String_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.Model.Serializer.SerializeStyles(System.Object,System.String,System.Xml.XmlTextWriter)">SerializeStyles(object, string, XmlTextWriter)</h4>
<div class="markdown level1 summary"><p>Serializes an object using the ISerializeStyles interface.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool SerializeStyles(object o, string elementName, XmlTextWriter w)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SerializeStyles(o As Object, elementName As String, w As XmlTextWriter) As Boolean</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.object">object</a></td>
      <td><span class="parametername">o</span></td>
      <td><p>Object to serialize</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">elementName</span></td>
      <td><p>Name of XML element</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlTextWriter</span></td>
      <td><span class="parametername">w</span></td>
      <td><p>XmlTextWriter object to which to save</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>true if successful; otherwise, false</p>
</td>
    </tr>
  </tbody>
</table>
</div>
