• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class TextWatermark

Represents a text watermark that can be placed in a header to appear behind the body text on every page of the section.

Inheritance
object
Watermark
TextWatermark
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public class TextWatermark : Watermark
Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

Constructors

TextWatermark(Document, string)

Creates a new text watermark with the specified text.

Declaration
public TextWatermark(Document document, string text)
Parameters
Type Name Description
Document document

The owning document.

string text

The watermark text.

Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

Properties

Color

Gets or sets the color of the watermark text.

Declaration
public Color Color { get; set; }
Property Value
Type Description
Color
Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

FontName

Gets or sets the font name.

Declaration
public string FontName { get; set; }
Property Value
Type Description
string
Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

FontSize

Gets or sets the font size in points.

Declaration
public double FontSize { get; set; }
Property Value
Type Description
double
Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

Rotation

Gets or sets the rotation angle in degrees.

Declaration
public double Rotation { get; set; }
Property Value
Type Description
double
Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

Semitransparent

Gets or sets whether the watermark text is semi-transparent.

Declaration
public bool Semitransparent { get; set; }
Property Value
Type Description
bool
Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

Shape

Gets the underlying shape that represents this watermark.

Declaration
public override AbstractShape Shape { get; }
Property Value
Type Description
AbstractShape
Overrides
Watermark.Shape
Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

Text

Gets or sets the watermark text.

Declaration
public string Text { get; set; }
Property Value
Type Description
string
Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

TextBoxShape

Gets the underlying text box shape (strongly typed).

Declaration
public TextBoxShape TextBoxShape { get; }
Property Value
Type Description
TextBoxShape
Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

Methods

SetDiagonal()

Sets the watermark to a diagonal orientation (315 degrees).

Declaration
public void SetDiagonal()
Remarks

A text watermark is rendered as a floating, semi-transparent, diagonally-rotated text shape centered on the page.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX