[]
        
(Showing Draft Content)

C1.WPF.Report.Field.Text

Text Property

Text

Gets or sets the field's text.

Declaration
public string Text { get; set; }
Remarks

The Text property contains the text that will be rendered on the report.

This value may be rendered literally (without any translation) or it may be evaluated as a VBScript expression, depending on the setting of the Calculated property.

Examples

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;