Gets or sets the field's text.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[DefaultValueAttribute(null)]
public string Text { get; set; }
Visual Basic
<DefaultValueAttribute(Nothing)> _
Public Property Text As String
	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 following code creates two fields; one displays the label "Sales Tax" and the other displays the tax value by multiplying a database field ("Sales") by a constant:

Copy CodeVisual Basic
' 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
Copy CodeC#
// 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;

See Also