PresentationContent Class
Represents a PowerPoint document where a watermark can be placed.
Inheritance Hierarchy

Namespace: GroupDocs.Watermark.Contents.Presentation
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public class PresentationContent : Content

The PresentationContent type exposes the following members.

Properties
  NameDescription
Public propertyLayoutSlides
Gets the collection of all layout slides of this PresentationContent.
Public propertyMasterHandoutSlide
Gets the master handout slide of this PresentationContent.
Public propertyMasterNotesSlide
Gets the master slide for all notes slides of this PresentationContent.
Public propertyMasterSlides
Gets the collection of all master slides of this PresentationContent.
Public propertyNotesSlideHeight
Gets the height of a notes slide in points.
Public propertyNotesSlideWidth
Gets the width of a notes slide in points.
Public propertySlideHeight
Gets the height of a slide in points.
Public propertySlides
Gets the collection of all slides of this PresentationContent.
Public propertySlideWidth
Gets the width of a slide in points.
Methods
  NameDescription
Public methodDecrypt
Decrypts the document.
Public methodDispose
Disposes the current instance.
(Inherited from Content.)
Protected methodDispose(Boolean)
Releases all resources used by the PresentationContent
(Overrides ContentDispose(Boolean).)
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 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.)
Remarks
Examples
Load and save PowerPoint document of any supported type.
C#
PresentationLoadOptions loadOptions = new PresentationLoadOptions();
using (Watermarker watermarker = new Watermarker(@"D:\input.ppt", loadOptions))
{
    // Use Add method to add watermark to a particular slide or all slides.

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