Xceed Words for .NET v5.2 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / PictureWatermark Class
Example


In This Topic
    PictureWatermark Class
    In This Topic
    Represents a Picture-based Watermark.
    Object Model
    PictureWatermark ClassWatermark Class
    Syntax
    'Declaration
     
    
    Public Class PictureWatermark 
       Inherits Watermark
    'Usage
     
    
    Dim instance As PictureWatermark
    public class PictureWatermark : Watermark 
    Example
    PictureWatermark watermark = new PictureWatermark( "Path/to/my/picture.jpg" );
    watermark.SetScale( PictureWatermark.ScaleOption.Scale50percent );
    document.AddWatermark( watermark );
    Inheritance Hierarchy

    System.Object
       Xceed.Document.NET.Watermark
          Xceed.Document.NET.PictureWatermark

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    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 path pointing to the Picture that will be used as a Watermark.  
    Public PropertyGets or sets the PictureWatermark.ScaleOption.  
    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 the stream containing the Picture 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 MethodGets the PictureWatermark.ScaleOption.   
    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 PictureWatermark.ScaleOption.    
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from Xceed.Document.NET.Watermark)
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also