# C1.Framework.Theme.WriteCustomData

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Theme_WriteCustomData_" data-uid="C1.Framework.Theme.WriteCustomData*">WriteCustomData Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Theme_WriteCustomData_" data-uid="C1.Framework.Theme.WriteCustomData*"></a>
<h4 id="C1_Framework_Theme_WriteCustomData_System_Xml_XmlWriter_" data-uid="C1.Framework.Theme.WriteCustomData(System.Xml.XmlWriter)">WriteCustomData(XmlWriter)</h4>
<div class="markdown level1 summary"><p>Writes component-specific data into the theme.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void WriteCustomData(XmlWriter writer)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub WriteCustomData(writer 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><span class="xref">XmlWriter</span></td>
      <td><span class="parametername">writer</span></td>
      <td><p><span class="xref">System.Xml.XmlWriter</span> where custom theme data is saved.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Framework_Theme_WriteCustomData_System_Xml_XmlWriter__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Derived classes should override this method to save any custom data their themes may need
(anything other than the <a class="xref" href="C1.Framework.Style.html">Style</a> collection).</p>
</div>
</div>
