# FarPoint.Win.Serializer.SerializeFontValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Serializer_SerializeFontValue_" data-uid="FarPoint.Win.Serializer.SerializeFontValue*">SerializeFontValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Serializer_SerializeFontValue_" data-uid="FarPoint.Win.Serializer.SerializeFontValue*"></a>
<h4 id="FarPoint_Win_Serializer_SerializeFontValue_System_Object_System_Xml_XmlWriter_" data-uid="FarPoint.Win.Serializer.SerializeFontValue(System.Object,System.Xml.XmlWriter)">SerializeFontValue(object, XmlWriter)</h4>
<div class="markdown level1 summary"><p>Serializes a font to XML with the specified writer
without writing element tags.</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 SerializeFontValue(object o, XmlWriter w)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SerializeFontValue(o As Object, w As XmlWriter) 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>Font object containing the font</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlWriter</span></td>
      <td><span class="parametername">w</span></td>
      <td><p>XmlTextWriter</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, false otherwise</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Serializer_SerializeFontValue_" data-uid="FarPoint.Win.Serializer.SerializeFontValue*"></a>
<h4 id="FarPoint_Win_Serializer_SerializeFontValue_System_Object_System_Xml_XmlWriter_System_Boolean_" data-uid="FarPoint.Win.Serializer.SerializeFontValue(System.Object,System.Xml.XmlWriter,System.Boolean)">SerializeFontValue(object, XmlWriter, bool)</h4>
<div class="markdown level1 summary"><p>Serializes font information to XML with the specified writer
and short XML name option without writing element tags.</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 SerializeFontValue(object o, XmlWriter w, bool shortXmlName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SerializeFontValue(o As Object, w As XmlWriter, shortXmlName As Boolean) 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>FontInfo object containing the font information</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlWriter</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>
<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, false otherwise</p>
</td>
    </tr>
  </tbody>
</table>
</div>
