# C1.Win.C1Chart.ChartDataArray.CopyDataOut

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Chart_ChartDataArray_CopyDataOut_" data-uid="C1.Win.C1Chart.ChartDataArray.CopyDataOut*">CopyDataOut Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Chart_ChartDataArray_CopyDataOut_" data-uid="C1.Win.C1Chart.ChartDataArray.CopyDataOut*"></a>
<h4 id="C1_Win_C1Chart_ChartDataArray_CopyDataOut" data-uid="C1.Win.C1Chart.ChartDataArray.CopyDataOut">CopyDataOut()</h4>
<div class="markdown level1 summary"><p>Copies data out of the ChartDataArray using the default data type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object CopyDataOut()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CopyDataOut() As Object</code></pre>
</div>
<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.object">object</a></td>
      <td><p>An object containing an array of the default type, appropriately converted
from the internal Double(VB) or double(C#) values.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart_ChartDataArray_CopyDataOut_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Although the returned array is an object, the underlying data type will be an
array of type Single, Double, Integer, Int16, Int64, Decimal or DateTime (VB)
or float, double, int, Int16, Int64, decimal or DateTime (C#).
When PointData is managed by the ChartDataArray, an array PointF objects may also be returned.
</p>
In Visual Basic, it is not necessary to explicitly cast the returned value.
The strong typing of C# however, requires an explicit cast.
<p>
Note that all values are stored as a Double(VB) or double(C#) data type internally.
Data conversions are performed automatically and as appropriate for the default data type.
</p>
</div>


<a id="C1_Win_C1Chart_ChartDataArray_CopyDataOut_" data-uid="C1.Win.C1Chart.ChartDataArray.CopyDataOut*"></a>
<h4 id="C1_Win_C1Chart_ChartDataArray_CopyDataOut_System_Type_" data-uid="C1.Win.C1Chart.ChartDataArray.CopyDataOut(System.Type)">CopyDataOut(Type)</h4>
<div class="markdown level1 summary"><p>Copies data out of the ChartDataArray using the specified data type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object CopyDataOut(Type t)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CopyDataOut(t As Type) As Object</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.type">Type</a></td>
      <td><span class="parametername">t</span></td>
      <td><p>type</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.object">object</a></td>
      <td><p>An object containing an array of the specified type, appropriately converted
from the internal Double(VB) or double(C#) values.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart_ChartDataArray_CopyDataOut_System_Type__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Although the returned array is an object, the underlying data type will be an
array of type Single, Double, Integer, Int16, Int64, Decimal or DateTime (VB)
or float, double, int, Int16, Int64, decimal or DateTime (C#).
When PointData is managed by the ChartDataArray, an array PointF objects may also be returned.
</p>
In Visual Basic, it is not necessary to explicitly cast the returned value.
The strong typing of C# however, requires an explicit cast.
<p>
Note that all values are stored as a Double(VB) or double(C#) data type internally.
Data conversions are performed automatically and as appropriate for the specified data type.
</p>
</div>
</div>
