# GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Chart_GraphXmlSerializationContext__ctor_" data-uid="GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.#ctor*">GraphXmlSerializationContext Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Chart_GraphXmlSerializationContext__ctor_" data-uid="GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_GraphXmlSerializationContext__ctor_GrapeCity_ActiveReports_Chart_ISharpGraph_GrapeCity_ActiveReports_Chart_GraphXmlSerializationContext_DirectionType_System_Xml_XmlDocument_System_Boolean_" data-uid="GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.#ctor(GrapeCity.ActiveReports.Chart.ISharpGraph,GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.DirectionType,System.Xml.XmlDocument,System.Boolean)">GraphXmlSerializationContext(ISharpGraph, DirectionType, XmlDocument, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the GraphXmlSerializationContext class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GraphXmlSerializationContext(ISharpGraph sharpGraph, GraphXmlSerializationContext.DirectionType direction, XmlDocument doc, bool includeData)</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.ActiveReports.Chart.ISharpGraph.html">ISharpGraph</a></td>
      <td><span class="parametername">sharpGraph</span></td>
      <td><p>A SharpGraph control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.html">GraphXmlSerializationContext</a>.<a class="xref" href="GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.DirectionType.html">DirectionType</a></td>
      <td><span class="parametername">direction</span></td>
      <td><p>Direction to serialize - from xml or to xml</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlDocument</span></td>
      <td><span class="parametername">doc</span></td>
      <td><p>An XmlDocument</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeData</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Chart_GraphXmlSerializationContext__ctor_" data-uid="GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_GraphXmlSerializationContext__ctor_GrapeCity_ActiveReports_Chart_GraphXmlSerializationContext_DirectionType_System_Xml_XmlDocument_System_Boolean_System_Boolean_" data-uid="GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.#ctor(GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.DirectionType,System.Xml.XmlDocument,System.Boolean,System.Boolean)">GraphXmlSerializationContext(DirectionType, XmlDocument, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the GraphXmlSerializationContext class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GraphXmlSerializationContext(GraphXmlSerializationContext.DirectionType direction, XmlDocument doc, bool includeData, bool useComponentReferences)</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.ActiveReports.Chart.GraphXmlSerializationContext.html">GraphXmlSerializationContext</a>.<a class="xref" href="GrapeCity.ActiveReports.Chart.GraphXmlSerializationContext.DirectionType.html">DirectionType</a></td>
      <td><span class="parametername">direction</span></td>
      <td><p>Direction to serialize - from xml or to xml</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlDocument</span></td>
      <td><span class="parametername">doc</span></td>
      <td><p>An XmlDocument</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeData</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">useComponentReferences</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
