WordProcessingWatermarkPagesOptions Class
Represents options when adding watermark to Word document pages.
Inheritance Hierarchy

Namespace: GroupDocs.Watermark.Options.WordProcessing
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public sealed class WordProcessingWatermarkPagesOptions : WordProcessingWatermarkBaseOptions

The WordProcessingWatermarkPagesOptions type exposes the following members.

Constructors
  NameDescription
Public methodWordProcessingWatermarkPagesOptions
Initializes a new instance of the WordProcessingWatermarkPagesOptions class.
Properties
  NameDescription
Public propertyAlternativeText
Gets or sets the descriptive (alternative) text that will be associated with a shape.
(Inherited from WordProcessingWatermarkBaseOptions.)
Public propertyEffects
Gets or sets a value of WordProcessingImageEffects or WordProcessingTextEffects for effects that should be applied to the watermark.
(Inherited from WordProcessingWatermarkBaseOptions.)
Public propertyIsLocked
Gets or sets a value indicating whether an editing of the shape in Word is forbidden.
(Inherited from WordProcessingWatermarkBaseOptions.)
Public propertyLockType
Gets or sets the watermark lock type.
(Inherited from WordProcessingWatermarkBaseOptions.)
Public propertyName
Gets or sets the name a shape.
(Inherited from WordProcessingWatermarkBaseOptions.)
Public propertyPageNumbers
Gets or sets the page numbers to add the watermark.
Public propertyPassword
Gets or sets a password used to lock the watermark.
(Inherited from WordProcessingWatermarkBaseOptions.)
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Remarks
Examples
Add watermark to a particular page of a Word document.
C#
WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions();
using (Watermarker watermarker = new Watermarker(@"D:\test.doc", loadOptions))
{
    TextWatermark watermark = new TextWatermark("text", new Font("Arial", 42));

    WordProcessingWatermarkPagesOptions options = new WordProcessingWatermarkPagesOptions();
    options.PageNumbers = new[] { 1 };

    watermarker.Add(watermark, options);
    watermarker.Save();
}
See Also