A report element that draws a static text.
Namespace: MindFusion.Reporting
Assembly: MindFusion.Reporting
C# Copy Code |
---|
public class Label : ReportItem, IVirtualPropertyProvider |
Visual Basic Copy Code |
---|
Public Class Label |
Usually, labels display static text. In this case, simply assign the text to be displayed to their Text property.
Alternatively, the labels can be bound to fields in a data source. To do this, the label must be placed in a data-bound DataRange object and its DataField property must be set to the name of the respective data field. For more information regarding this, check the Report Items and Binding Reports to a Data Source topics.
Finally, the text of the label may contained the so-called expressions. The expressions within the label's text are evaluated when the report is run and the result of the evaluation is displayed by the label. Extensive information about how to integrate expressions in the text of labels can be found in the Using Expressions in Reports topic.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
MindFusion.Reporting.ReportItem
MindFusion.Reporting.Label