# GrapeCity.Documents.Word.MathMLConverter.ToMathML

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_MathMLConverter_ToMathML_" data-uid="GrapeCity.Documents.Word.MathMLConverter.ToMathML*">ToMathML Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_MathMLConverter_ToMathML_" data-uid="GrapeCity.Documents.Word.MathMLConverter.ToMathML*"></a>
<h4 id="GrapeCity_Documents_Word_MathMLConverter_ToMathML_GrapeCity_Documents_Word_ContentObject_System_Xml_XmlWriter_" data-uid="GrapeCity.Documents.Word.MathMLConverter.ToMathML(GrapeCity.Documents.Word.ContentObject,System.Xml.XmlWriter)">ToMathML(ContentObject, XmlWriter)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a> to MathML.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ToMathML(ContentObject content, XmlWriter result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ToMathML(content As ContentObject, result As XmlWriter)</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="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a></td>
      <td><span class="parametername">content</span></td>
      <td><p>The source <a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a> to convert.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlWriter</span></td>
      <td><span class="parametername">result</span></td>
      <td><p>The target <span class="xref">System.Xml.XmlWriter</span> where to write the MathML content.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_MathMLConverter_ToMathML_" data-uid="GrapeCity.Documents.Word.MathMLConverter.ToMathML*"></a>
<h4 id="GrapeCity_Documents_Word_MathMLConverter_ToMathML_GrapeCity_Documents_Word_RangeBase_System_Xml_XmlWriter_" data-uid="GrapeCity.Documents.Word.MathMLConverter.ToMathML(GrapeCity.Documents.Word.RangeBase,System.Xml.XmlWriter)">ToMathML(RangeBase, XmlWriter)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="GrapeCity.Documents.Word.RangeBase.html">RangeBase</a> to MathML.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool ToMathML(RangeBase range, XmlWriter result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToMathML(range As RangeBase, result 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="GrapeCity.Documents.Word.RangeBase.html">RangeBase</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The source <a class="xref" href="GrapeCity.Documents.Word.RangeBase.html">RangeBase</a> to convert.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlWriter</span></td>
      <td><span class="parametername">result</span></td>
      <td><p>The target <span class="xref">System.Xml.XmlWriter</span> where to write the MathML content.</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><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the range is converter successfully; otherwise <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a></p>
</td>
    </tr>
  </tbody>
</table>
</div>
