[]
        
(Showing Draft Content)

C1.Report.ScriptValue-1

ScriptValue<T> Class

The abstract base class for types such as ScriptStringValue, ScriptObjectValue and others that allow to specify a value either as a literal or as an expression.

Namespace: C1.Report
Assembly: C1.FlexReport.dll
Syntax
public abstract class ScriptValue<T>
Type Parameters
Name Description
T

Properties

Name Description
Expression

Gets or sets an expression used to calculate value of this ScriptValue<T>. Setting this value forces IsExpression to true.

IsExpression

Gets or sets a value indicating whether the current ScriptValue<T> is specified as an expression.

Owner
Value

Gets or sets a value of this ScriptValue<T>. Settings this value forces IsExpression to false.

ValueAsString

Gets a string representing the value of this ScriptValue<T> object.

Methods

Name Description
AssignFrom(ScriptValue<T>)

Assigns (copies) properties from another ScriptValue<T> to the current object.

Clear()
Deinit()

Finalizes object, should be called when no more calculations expected, for example when report rendering finished.

ResetValue()
SetProp(ScriptValue<T>)

Helper method which can be used in setter of property with type ScriptValue. Assigns properties of value to the current object resets this object if value is null. Returns true if this object was actually changed.

ToString()

Operators

Name Description
implicit operator string(ScriptValue<T>)

Converts the ScriptValue<T>object to a string.