# FarPoint.Web.Spread.Model.Serializer.SerializeFont

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_Model_Serializer_SerializeFont_" data-uid="FarPoint.Web.Spread.Model.Serializer.SerializeFont*">SerializeFont Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_Model_Serializer_SerializeFont_" data-uid="FarPoint.Web.Spread.Model.Serializer.SerializeFont*"></a>
<h4 id="FarPoint_Web_Spread_Model_Serializer_SerializeFont_System_Web_UI_WebControls_FontInfo_System_String_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.Model.Serializer.SerializeFont(System.Web.UI.WebControls.FontInfo,System.String,System.Xml.XmlTextWriter)">SerializeFont(FontInfo, string, XmlTextWriter)</h4>
<div class="markdown level1 summary"><p>Serializes font information into XML with the specified writer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void SerializeFont(FontInfo font, string elementName, XmlTextWriter w)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub SerializeFont(font As FontInfo, elementName As String, w As XmlTextWriter)</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.web.ui.webcontrols.fontinfo">FontInfo</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>FontInfo object that contains the font information</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</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_Serializer_SerializeFont_" data-uid="FarPoint.Web.Spread.Model.Serializer.SerializeFont*"></a>
<h4 id="FarPoint_Web_Spread_Model_Serializer_SerializeFont_System_Web_UI_WebControls_FontInfo_System_String_System_Xml_XmlTextWriter_System_Boolean_" data-uid="FarPoint.Web.Spread.Model.Serializer.SerializeFont(System.Web.UI.WebControls.FontInfo,System.String,System.Xml.XmlTextWriter,System.Boolean)">SerializeFont(FontInfo, string, XmlTextWriter, bool)</h4>
<div class="markdown level1 summary"><p>Serializes font information into XML with the specified writer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void SerializeFont(FontInfo font, string elementName, XmlTextWriter w, bool shortXmlName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub SerializeFont(font As FontInfo, elementName As String, w As XmlTextWriter, shortXmlName 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.web.ui.webcontrols.fontinfo">FontInfo</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>FontInfo object that contains the font information</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</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">shortXmlName</span></td>
      <td><p>Whether to use the short XML name</p>
</td>
    </tr>
  </tbody>
</table>
</div>
