# C1.Report.ScriptValue-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_ScriptValue_1" data-uid="C1.Report.ScriptValue`1" class="text-break">ScriptValue&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>The abstract base class for types such as <a class="xref" href="C1.Report.ScriptStringValue.html">ScriptStringValue</a>,
<a class="xref" href="C1.Report.ScriptObjectValue.html">ScriptObjectValue</a> and others that allow to specify a value
either as a literal or as an expression.</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">ScriptValue&lt;T&gt;</span></div>
      <div class="level2"><a class="xref" href="C1.Report.ScriptEnumValue-1.html">ScriptEnumValue&lt;T&gt;</a></div>
      <div class="level2"><a class="xref" href="C1.Report.ScriptObjectValue.html">ScriptObjectValue</a></div>
      <div class="level2"><a class="xref" href="C1.Report.ScriptStringValue.html">ScriptStringValue</a></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_ScriptValue_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class ScriptValue&lt;T&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class ScriptValue(Of T)</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></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_ScriptValue_1_Expression" data-uid="C1.Report.ScriptValue`1.Expression">
          <a class="xref" href="C1.Report.ScriptValue-1.Expression.html#C1_Report_ScriptValue_1_Expression">Expression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an expression used to calculate value of this <a class="xref" href="C1.Report.ScriptValue-1.html">ScriptValue&lt;T&gt;</a>.
Setting this value forces <a class="xref" href="C1.Report.ScriptValue-1.IsExpression.html#C1_Report_ScriptValue_1_IsExpression">IsExpression</a> to true.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_ScriptValue_1_IsExpression" data-uid="C1.Report.ScriptValue`1.IsExpression">
          <a class="xref" href="C1.Report.ScriptValue-1.IsExpression.html#C1_Report_ScriptValue_1_IsExpression">IsExpression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the current <a class="xref" href="C1.Report.ScriptValue-1.html">ScriptValue&lt;T&gt;</a>
is specified as an expression.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_ScriptValue_1_Owner" data-uid="C1.Report.ScriptValue`1.Owner">
          <a class="xref" href="C1.Report.ScriptValue-1.Owner.html#C1_Report_ScriptValue_1_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_ScriptValue_1_Value" data-uid="C1.Report.ScriptValue`1.Value">
          <a class="xref" href="C1.Report.ScriptValue-1.Value.html#C1_Report_ScriptValue_1_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value of this <a class="xref" href="C1.Report.ScriptValue-1.html">ScriptValue&lt;T&gt;</a>.
Settings this value forces <a class="xref" href="C1.Report.ScriptValue-1.IsExpression.html#C1_Report_ScriptValue_1_IsExpression">IsExpression</a> to false.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_ScriptValue_1_ValueAsString" data-uid="C1.Report.ScriptValue`1.ValueAsString">
          <a class="xref" href="C1.Report.ScriptValue-1.ValueAsString.html#C1_Report_ScriptValue_1_ValueAsString">ValueAsString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a string representing the value of this <a class="xref" href="C1.Report.ScriptValue-1.html">ScriptValue&lt;T&gt;</a> object.</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_ScriptValue_1_AssignFrom_C1_Report_ScriptValue__0__" data-uid="C1.Report.ScriptValue`1.AssignFrom(C1.Report.ScriptValue{`0})">
          <a class="xref" href="C1.Report.ScriptValue-1.AssignFrom.html#C1_Report_ScriptValue_1_AssignFrom_C1_Report_ScriptValue__0__">AssignFrom(ScriptValue&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.Report.ScriptValue-1.html">ScriptValue&lt;T&gt;</a> to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_ScriptValue_1_Clear" data-uid="C1.Report.ScriptValue`1.Clear">
          <a class="xref" href="C1.Report.ScriptValue-1.Clear.html#C1_Report_ScriptValue_1_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_ScriptValue_1_Deinit" data-uid="C1.Report.ScriptValue`1.Deinit">
          <a class="xref" href="C1.Report.ScriptValue-1.Deinit.html#C1_Report_ScriptValue_1_Deinit">Deinit()</a>
        </td>
        <td class="markdown level1 summary"><p>Finalizes object, should be called when no more calculations expected,
for example when report rendering finished.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_ScriptValue_1_ResetValue" data-uid="C1.Report.ScriptValue`1.ResetValue">
          <a class="xref" href="C1.Report.ScriptValue-1.ResetValue.html#C1_Report_ScriptValue_1_ResetValue">ResetValue()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_ScriptValue_1_SetProp_C1_Report_ScriptValue__0__" data-uid="C1.Report.ScriptValue`1.SetProp(C1.Report.ScriptValue{`0})">
          <a class="xref" href="C1.Report.ScriptValue-1.SetProp.html#C1_Report_ScriptValue_1_SetProp_C1_Report_ScriptValue__0__">SetProp(ScriptValue&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Helper method which can be used in setter of property with type ScriptValue.
Assigns properties of <code class="paramref">value</code> to the current object
resets this object if <code class="paramref">value</code> is null.
Returns <b>true</b> if this object was actually changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_ScriptValue_1_ToString" data-uid="C1.Report.ScriptValue`1.ToString">
          <a class="xref" href="C1.Report.ScriptValue-1.ToString.html#C1_Report_ScriptValue_1_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Report_ScriptValue_1_op_Implicit_C1_Report_ScriptValue__0___System_String" data-uid="C1.Report.ScriptValue`1.op_Implicit(C1.Report.ScriptValue{`0})~System.String">
          <a class="xref" href="C1.Report.ScriptValue-1.op_Implicit.html#C1_Report_ScriptValue_1_op_Implicit_C1_Report_ScriptValue__0___System_String">implicit operator string(ScriptValue&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the <a class="xref" href="C1.Report.ScriptValue-1.html">ScriptValue&lt;T&gt;</a>object to a string.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
