FlexReport for WinForms
Calculated プロパティ (Field)
使用例 


C1.Report アセンブリ > C1.Report 名前空間 > Field クラス : Calculated プロパティ
Specifies whether the Text property should be interpreted as a literal value or as a calculated expression.
シンタックス
'宣言
 
Public Property Calculated As System.Boolean
'使用法
 
Dim instance As Field
Dim value As System.Boolean
 
instance.Calculated = value
 
value = instance.Calculated
public System.bool Calculated {get; set;}
解説

If this property is set to false, the value of the Text property is rendered on the report without any further processing.

If it is set to true, the value of the Text property is evaluated as a VBScript expression and the result of the expression is rendered on the report.

使用例
The code below creates two fields. One displays the label "Sales Tax", the other displays the tax value by multiplying a database field ("Sales") by a constant.
// 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;
参照

参照

Field クラス
Field メンバ