# C1.Report.CalculatedField

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_CalculatedField" data-uid="C1.Report.CalculatedField" class="text-break">CalculatedField Class
</h1>
  <div class="markdown level0 summary"><p>Represents a calculated data field associated with a <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a>'s data source.
Usually values of such fields are calculated based on values of other fields in the data source.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">OwnedObject</span></div>
    <div class="level2"><span class="xref">NamedObject</span></div>
    <div class="level3"><span class="xref">CalculatedField</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Report.html">C1.Report</a></h6>
  <h6><strong>Assembly</strong>: C1.Report.dll</h6>
  <h5 id="C1_Report_CalculatedField_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CalculatedField : NamedObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CalculatedField
    Inherits NamedObject</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Report_CalculatedField__ctor" data-uid="C1.Report.CalculatedField.#ctor">
          <a class="xref" href="C1.Report.CalculatedField.-ctor.html#C1_Report_CalculatedField__ctor">CalculatedField()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Report.CalculatedField.html">CalculatedField</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_CalculatedField__ctor_System_String_System_Type_System_String_" data-uid="C1.Report.CalculatedField.#ctor(System.String,System.Type,System.String)">
          <a class="xref" href="C1.Report.CalculatedField.-ctor.html#C1_Report_CalculatedField__ctor_System_String_System_Type_System_String_">CalculatedField(string, Type, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Report.CalculatedField.html">CalculatedField</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Report_CalculatedField_DataSource" data-uid="C1.Report.CalculatedField.DataSource">
          <a class="xref" href="C1.Report.CalculatedField.DataSource.html#C1_Report_CalculatedField_DataSource">DataSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.CalculatedField.DataSource.html#C1_Report_CalculatedField_DataSource">DataSource</a> object containing this object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_CalculatedField_Expression" data-uid="C1.Report.CalculatedField.Expression">
          <a class="xref" href="C1.Report.CalculatedField.Expression.html#C1_Report_CalculatedField_Expression">Expression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the expression used to calcualte the field's value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_CalculatedField_Owner" data-uid="C1.Report.CalculatedField.Owner">
          <a class="xref" href="C1.Report.CalculatedField.Owner.html#C1_Report_CalculatedField_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.CalculatedFieldCollection.html">CalculatedFieldCollection</a> collection containing this object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_CalculatedField_ParentReport" data-uid="C1.Report.CalculatedField.ParentReport">
          <a class="xref" href="C1.Report.CalculatedField.ParentReport.html#C1_Report_CalculatedField_ParentReport">ParentReport</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a> object containing this object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_CalculatedField_Type" data-uid="C1.Report.CalculatedField.Type">
          <a class="xref" href="C1.Report.CalculatedField.Type.html#C1_Report_CalculatedField_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the data type of the current field.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Report_CalculatedField_AssignFrom_System_Object_" data-uid="C1.Report.CalculatedField.AssignFrom(System.Object)">
          <a class="xref" href="C1.Report.CalculatedField.AssignFrom.html#C1_Report_CalculatedField_AssignFrom_System_Object_">AssignFrom(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies properties from another <a class="xref" href="C1.Report.CalculatedField.html">CalculatedField</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_CalculatedField_CreateSame" data-uid="C1.Report.CalculatedField.CreateSame">
          <a class="xref" href="C1.Report.CalculatedField.CreateSame.html#C1_Report_CalculatedField_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of the same class as this one.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_CalculatedField_SetName_System_String_" data-uid="C1.Report.CalculatedField.SetName(System.String)">
          <a class="xref" href="C1.Report.CalculatedField.SetName.html#C1_Report_CalculatedField_SetName_System_String_">SetName(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the name of the current object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
