New to Telerik ReportingStart a free 30-day trial

Represents a text watermark on a printable page.

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

C#
public sealed class TextWatermark : Watermark

Inheritance: objectReportObjectWatermarkTextWatermark

Inherited Members Watermark.PositionWatermark.OpacityWatermark.PrintOnFirstPageWatermark.PrintOnLastPage

Constructors

TODO: Add documentation.

C#
public TextWatermark()

Properties

Color

Color

Gets or sets the color of the watermark text.

C#
public Color Color { get; set; }
Property Value:

A Color value that specifies the color of the watermark text without the transparency.

Gets the font settings of the watermark text.

C#
public Font Font { get; }
Property Value:

A Font value that specifies the font settings of the watermark text.

Gets or sets the orientation of the watermark text on the printable page.

C#
public WatermarkOrientation Orientation { get; set; }
Property Value:

A WatermarkOrientation value that specifies the orientation of the watermark text on the printable page.

Text

string

Gets or sets the text of the watermark to be printed on the page.

C#
public string Text { get; set; }
Property Value:

A string started with "=" is interpreted as an expression to calculate the real data, otherwise - literal string. Supports embedded expressions also.

Remarks:

The text can be specified either directly as a string literal or indirectly as an expression that is evaluated at runtime for each printable page. If the text is null (Nothing in Visual Basic) or an empty string, or if the specified expression evaluates to null (Nothing in Visual Basic) or an empty string, the watermark is not printed on the current page.

Methods

GetStrings()

IEnumerable<string>

Internal use only

C#
protected override IEnumerable<string> GetStrings()
Returns:

IEnumerable<string>

Overrides: Watermark.GetStrings()