WordProcessingWatermarkSectionOptions Class
Represents options when adding shape watermark to a Word document section.
Inheritance Hierarchy

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

The WordProcessingWatermarkSectionOptions type exposes the following members.

Constructors
  NameDescription
Public methodWordProcessingWatermarkSectionOptions
Initializes a new instance of the WordProcessingWatermarkSectionOptions 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 propertyPassword
Gets or sets a password used to lock the watermark.
(Inherited from WordProcessingWatermarkBaseOptions.)
Public propertySectionIndex
Gets or sets the index of a section to add the watermark to.
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 section of a Word document.
C#
WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions();
using (Watermarker watermarker = new Watermarker(@"C:\Documents\test.doc", loadOptions))
{
    TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 36, FontStyle.Bold | FontStyle.Italic));
    watermark.HorizontalAlignment = HorizontalAlignment.Center;
    watermark.VerticalAlignment = VerticalAlignment.Center;
    watermark.ForegroundColor = Color.Red;

    WordProcessingWatermarkSectionOptions options = new WordProcessingWatermarkSectionOptions();
    options.SectionIndex = 0;

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