# C1.Framework.XmlUtil.Write

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_XmlUtil_Write_" data-uid="C1.Framework.XmlUtil.Write*">Write Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_XmlUtil_Write_" data-uid="C1.Framework.XmlUtil.Write*"></a>
<h4 id="C1_Framework_XmlUtil_Write_System_Xml_XmlWriter_System_String_System_Boolean_System_Boolean_" data-uid="C1.Framework.XmlUtil.Write(System.Xml.XmlWriter,System.String,System.Boolean,System.Boolean)">Write(XmlWriter, string, bool, bool)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Write(XmlWriter writer, string attName, bool value, bool defVal)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Write(writer As XmlWriter, attName As String, value As Boolean, defVal 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><span class="xref">XmlWriter</span></td>
      <td><span class="parametername">writer</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">attName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">defVal</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_XmlUtil_Write_" data-uid="C1.Framework.XmlUtil.Write*"></a>
<h4 id="C1_Framework_XmlUtil_Write_System_Xml_XmlWriter_System_String_System_Decimal_System_Decimal_" data-uid="C1.Framework.XmlUtil.Write(System.Xml.XmlWriter,System.String,System.Decimal,System.Decimal)">Write(XmlWriter, string, decimal, decimal)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Write(XmlWriter writer, string attName, decimal value, decimal defVal)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Write(writer As XmlWriter, attName As String, value As Decimal, defVal As Decimal)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">attName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.decimal">decimal</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.decimal">decimal</a></td>
      <td><span class="parametername">defVal</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_XmlUtil_Write_" data-uid="C1.Framework.XmlUtil.Write*"></a>
<h4 id="C1_Framework_XmlUtil_Write_System_Xml_XmlWriter_System_String_System_Double_System_Double_" data-uid="C1.Framework.XmlUtil.Write(System.Xml.XmlWriter,System.String,System.Double,System.Double)">Write(XmlWriter, string, double, double)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Write(XmlWriter writer, string attName, double value, double defVal)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Write(writer As XmlWriter, attName As String, value As Double, defVal As Double)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">attName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">defVal</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_XmlUtil_Write_" data-uid="C1.Framework.XmlUtil.Write*"></a>
<h4 id="C1_Framework_XmlUtil_Write_System_Xml_XmlWriter_System_String_System_Single_System_Single_" data-uid="C1.Framework.XmlUtil.Write(System.Xml.XmlWriter,System.String,System.Single,System.Single)">Write(XmlWriter, string, float, float)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Write(XmlWriter writer, string attName, float value, float defVal)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Write(writer As XmlWriter, attName As String, value As Single, defVal As Single)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">attName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">defVal</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_XmlUtil_Write_" data-uid="C1.Framework.XmlUtil.Write*"></a>
<h4 id="C1_Framework_XmlUtil_Write_System_Xml_XmlWriter_System_String_System_Int32_System_Int32_" data-uid="C1.Framework.XmlUtil.Write(System.Xml.XmlWriter,System.String,System.Int32,System.Int32)">Write(XmlWriter, string, int, int)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Write(XmlWriter writer, string attName, int value, int defVal)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Write(writer As XmlWriter, attName As String, value As Integer, defVal As Integer)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">attName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">defVal</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_XmlUtil_Write_" data-uid="C1.Framework.XmlUtil.Write*"></a>
<h4 id="C1_Framework_XmlUtil_Write_System_Xml_XmlWriter_System_String_System_String_System_String_" data-uid="C1.Framework.XmlUtil.Write(System.Xml.XmlWriter,System.String,System.String,System.String)">Write(XmlWriter, string, string, string)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Write(XmlWriter writer, string attName, string value, string defVal)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Write(writer As XmlWriter, attName As String, value As String, defVal As String)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">attName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">defVal</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_XmlUtil_Write_" data-uid="C1.Framework.XmlUtil.Write*"></a>
<h4 id="C1_Framework_XmlUtil_Write_System_Xml_XmlWriter_System_String_System_Drawing_Size_System_Drawing_Size_" data-uid="C1.Framework.XmlUtil.Write(System.Xml.XmlWriter,System.String,System.Drawing.Size,System.Drawing.Size)">Write(XmlWriter, string, Size, Size)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Write(XmlWriter writer, string attName, Size value, Size defVal)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Write(writer As XmlWriter, attName As String, value As Size, defVal As Size)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">attName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">defVal</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_XmlUtil_Write_" data-uid="C1.Framework.XmlUtil.Write*"></a>
<h4 id="C1_Framework_XmlUtil_Write_System_Xml_XmlWriter_System_String_C1_Framework_Thickness_C1_Framework_Thickness_" data-uid="C1.Framework.XmlUtil.Write(System.Xml.XmlWriter,System.String,C1.Framework.Thickness,C1.Framework.Thickness)">Write(XmlWriter, string, Thickness, Thickness)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Write(XmlWriter writer, string attName, Thickness value, Thickness defVal)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Write(writer As XmlWriter, attName As String, value As Thickness, defVal As Thickness)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">attName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Framework.Thickness.html">Thickness</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Framework.Thickness.html">Thickness</a></td>
      <td><span class="parametername">defVal</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_XmlUtil_Write_" data-uid="C1.Framework.XmlUtil.Write*"></a>
<h4 id="C1_Framework_XmlUtil_Write_System_Xml_XmlWriter_System_String_System_Drawing_Rectangle_System_Drawing_Rectangle_" data-uid="C1.Framework.XmlUtil.Write(System.Xml.XmlWriter,System.String,System.Drawing.Rectangle,System.Drawing.Rectangle)">Write(XmlWriter, string, Rectangle, Rectangle)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Write(XmlWriter writer, string attName, Rectangle value, Rectangle defVal)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Write(writer As XmlWriter, attName As String, value As Rectangle, defVal As Rectangle)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">attName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">defVal</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
