# C1.Report.Field.Calculated

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_Field_Calculated_" data-uid="C1.Report.Field.Calculated*">Calculated Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_Field_Calculated_" data-uid="C1.Report.Field.Calculated*"></a>
<h4 id="C1_Report_Field_Calculated" data-uid="C1.Report.Field.Calculated">Calculated</h4>
<div class="markdown level1 summary"><p>Specifies whether the <a class="xref" href="C1.Report.Field.Text.html#C1_Report_Field_Text">Text</a> property should be interpreted as a literal value
or as a calculated expression.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Category(&quot;Data&quot;)]
[C1Description(&quot;Field.Calculated&quot;, &quot;Indicates whether the Text property should be interpreted as a literal value or as a calculated expression.&quot;)]
public bool Calculated { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Category(&quot;Data&quot;)&gt;
&lt;C1Description(&quot;Field.Calculated&quot;, &quot;Indicates whether the Text property should be interpreted as a literal value or as a calculated expression.&quot;)&gt;
Public Property Calculated As Boolean</code></pre>
</div>
<h5 id="C1_Report_Field_Calculated_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If this property is set to false, the value of the <a class="xref" href="C1.Report.Field.Text.html#C1_Report_Field_Text">Text</a> property is rendered 
on the report without any further processing.</p>
<p>If it is set to true, the value of the <a class="xref" href="C1.Report.Field.Text.html#C1_Report_Field_Text">Text</a> property is evaluated as a 
<b>VBScript</b> expression and the result of the expression is rendered on the report.</p>
</div>
<h5 id="C1_Report_Field_Calculated_examples">Examples</h5>
<p>The code below creates two fields. One displays the label &quot;Sales Tax&quot;, the other displays the
tax value by multiplying a database field (&quot;Sales&quot;) by a constant.</p>
<pre><code class="lang-csharp">// display literal Text
_c1r.Field[0].Text = "Sales Tax";
_c1r.Field[0].Calculated = false; 

// display a calculated value
_c1r.Field[1].Text = "Sales * 0.085";
_c1r.Field[1].Calculated = true;</code></pre>

</div>
