skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class TextWatermark

Represents a text watermark on a printable page.

Inheritance
System.Object
ReportObject
Watermark
TextWatermark
Inherited Members
Watermark.ShouldSerializeOpacityCore()
Watermark.ResetOpacityCore()
Watermark.Position
Watermark.Opacity
Watermark.PrintOnFirstPage
Watermark.PrintOnLastPage
ReportObject.ToString(String[])
Namespace: Telerik.Reporting.Drawing
Assembly: Telerik.Reporting.dll

Syntax

public sealed class TextWatermark : Watermark, IExpressionContainer, ICloneable

Constructors

TextWatermark()

Declaration
public TextWatermark()

Properties

Color

Gets or sets the color of the watermark text.

Declaration
public Color Color { get; set; }
Property Value
System.Drawing.Color

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

Font

Gets the font settings of the watermark text.

Declaration
public Font Font { get; }
Property Value
Font

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

Orientation

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

Declaration
public WatermarkOrientation Orientation { get; set; }
Property Value
WatermarkOrientation

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

Text

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

Declaration
public string Text { get; set; }
Property Value
System.String

A System.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.

Examples

The following expression prints a watermark on every second page:

= If(PageNumber % 2 = 0, "Watermark", Null)

Methods

GetStrings()

Declaration
protected override IEnumerable<string> GetStrings()
Returns
System.Collections.Generic.IEnumerable<System.String>

Overrides
Watermark.GetStrings()
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.