# C1.Win.C1Chart.ChartCoordArray.CopyDataIn

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Chart_ChartCoordArray_CopyDataIn_" data-uid="C1.Win.C1Chart.ChartCoordArray.CopyDataIn*">CopyDataIn Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Chart_ChartCoordArray_CopyDataIn_" data-uid="C1.Win.C1Chart.ChartCoordArray.CopyDataIn*"></a>
<h4 id="C1_Win_C1Chart_ChartCoordArray_CopyDataIn_System_Object_" data-uid="C1.Win.C1Chart.ChartCoordArray.CopyDataIn(System.Object)">CopyDataIn(object)</h4>
<div class="markdown level1 summary"><p>Copies data into the ChartCoordArray, replacing all existing data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool CopyDataIn(object o)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CopyDataIn(o As Object) 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="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">o</span></td>
      <td></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 Boolean value indicating whether the data was appropriately copied into the ChartCoordArray.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart_ChartCoordArray_CopyDataIn_System_Object__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Although the passed data array is an object, the underlying data type must be
an array of type Single, Double, Integer, Int16, Int64, Decimal or DateTime (VB)
or float, double, int, Int16, Int64, decimal or DateTime (C#).
An array of objects is not accepted.  When PointData is managed by the ChartCoordArray,
an array PointF objects may also be passed.
</p>
<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 inputted data type.
For example, setting a data element to a DateTime value of January 1, 2002 will be stored
internally as an Ole date, then converted to a Double/double with a result of 37257.
</p>
<p>
Additionally, the length of the copied array defines the length of the ChartCoordArray,
and the Length property will report the new value.
</p>
</div>
</div>
