Xceed Words for .NET v5.1 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / TextWatermark Class
Members Example


In This Topic
    TextWatermark Class
    In This Topic
    Represents a text-based Watermark.
    Syntax
    'Declaration
     
    Public Class TextWatermark 
       Inherits Watermark
    'Usage
     
    Dim instance As TextWatermark
    public class TextWatermark : Watermark 
    Example
    TextWatermark watermark = new TextWatermark()
      {
        Text = "ColorAndSize",
        Font = new Font( "Arial" ),
        FontSize = 48,
        Color = Xceed.Drawing.Color.DarkGoldenrod,
        SemiTransparent = false
      };
    
    document.AddWatermark( watermark );
    Inheritance Hierarchy

    System.Object
       Xceed.Document.NET.Watermark
          Xceed.Document.NET.TextWatermark

    Public Constructors
     NameDescription
    Public Constructor  
    Top
    Protected Fields
     NameDescription
    Protected Field (Inherited from Xceed.Document.NET.Watermark)
    Protected Field (Inherited from Xceed.Document.NET.Watermark)
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the Color of the Watermark's text.  
    Public PropertyGets or sets if the text is displayed diagonally or not.  
    Public PropertyGets or sets the Font used to stylize the Watermark's text.  
    Public PropertyGets or sets the size of the Watermark's text.  
    Public PropertyGets or sets the SectionScope. (Inherited from Xceed.Document.NET.Watermark)
    Public PropertyGets the indexes that correspond to the Sections displaying the Watermark. (Inherited from Xceed.Document.NET.Watermark)
    Public PropertyGets or sets if the Watermark is semi-transparent.  
    Public PropertyGets or sets the text that will be used as a Watermark.  
    Top
    Public Methods
     NameDescription
    Public MethodOverridden.   
    Public MethodOverloaded. Overridden. Determines whether the specified object is equal to the current object.  
    Public MethodAllows to verify if the Watermark is applied to a specific SectionScope. (Inherited from Xceed.Document.NET.Watermark)
    Public MethodRemoves the Watermark from the specified Section(s). (Inherited from Xceed.Document.NET.Watermark)
    Public MethodAdds the Watermark to the specified Section(s). (Inherited from Xceed.Document.NET.Watermark)
    Public MethodSets the Color that will be used by default to stylize the Watermark's text.  
    Public MethodSets the Font that will be used by default to display the Watermark's text.  
    Public MethodSets the default size for the Watermark's text.  
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from Xceed.Document.NET.Watermark)
    Top
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also