WordProcessingContent Class
Class representing Word document (doc, docx etc) where watermark should be placed.
Inheritance Hierarchy

Namespace: GroupDocs.Watermark.Contents.WordProcessing
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 21.3.0
Syntax
public class WordProcessingContent : Content

The WordProcessingContent type exposes the following members.

Properties
  NameDescription
Public propertyPageCount
Gets the number of pages in the document.
Public propertySections
Gets the collection of all sections of this WordProcessingContent.
Methods
  NameDescription
Public methodDecrypt
Decrypts the document.
Public methodDispose
Disposes the current instance.
(Inherited from Content.)
Protected methodDispose(Boolean)
Disposes the current instance.
(Inherited from Content.)
Public methodEncrypt
Encrypts the document.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindImages
Finds all images in the content. The search is conducted in the objects specified in SearchableObjects.
(Inherited from ContentPart.)
Public methodFindImages(ImageSearchCriteria)
Finds images according to the specified search criteria. The search is conducted in the objects specified in SearchableObjects.
(Inherited from ContentPart.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodProtect
Protects the document from changes and sets a protection password.
Public methodSearch
Finds all possible watermarks in the content. The search is conducted in the objects specified in SearchableObjects.
(Inherited from ContentPart.)
Public methodSearch(SearchCriteria)
Finds possible watermarks according to specified search criteria. The search is conducted in the objects specified in SearchableObjects.
(Inherited from ContentPart.)
Public methodToString (Inherited from Object.)
Public methodUnprotect
Removes protection from the document regardless of the password.
Remarks
Examples
Load and save Word document of any supported type.
C#
WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions();
using (Watermarker watermarker = new Watermarker(@"D:\input.doc", loadOptions))
{
    // Use Add method to add watermark to a particular or all sections.

    // Save changes.
    watermarker.Save(@"D:\output.doc");
}
See Also