PresentationWatermarkBaseSlideOptions
Contents
[
Hide
]
PresentationWatermarkBaseSlideOptions class
Base class for watermark adding options to a Presentation document.
public abstract class PresentationWatermarkBaseSlideOptions : PresentationWatermarkOptions
Properties
Name | Description |
---|---|
AlternativeText { get; set; } | Gets or sets the descriptive (alternative) text that will be associated with a shape. |
Effects { get; set; } | Gets or sets a value of PresentationImageEffects or PresentationTextEffects for effects that should be applied to the watermark. |
IsLocked { get; set; } | Gets or sets a value indicating whether an editing of the shape in PowerPoint is forbidden. |
Name { get; set; } | Gets or sets the name a shape. |
ProtectWithUnreadableCharacters { get; set; } | Gets or sets a value indicating whether the text watermark characters are mixed with unreadable characters. |
Remarks
Learn more:
Examples
Add watermark to different service slides of a Power Point presentation.
PresentationLoadOptions loadOptions = new PresentationLoadOptions();
using (Watermarker watermarker = new Watermarker(@"D:\test.pptx", loadOptions))
{
TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 8));
// Add watermark to all master slides
PresentationWatermarkMasterSlideOptions masterSlideOptions = new PresentationWatermarkMasterSlideOptions();
masterSlideOptions.MasterSlideIndex = -1; // default
watermarker.Add(watermark, masterSlideOptions);
// Add watermark to all layout slides
PresentationWatermarkLayoutSlideOptions layoutSlideOptions = new PresentationWatermarkLayoutSlideOptions();
layoutSlideOptions.LayoutSlideIndex = -1; // default
watermarker.Add(watermark, layoutSlideOptions);
// Add watermark to all notes slides
PresentationWatermarkNoteSlideOptions noteSlideOptions = new PresentationWatermarkNoteSlideOptions();
noteSlideOptions.SlideIndex = -1; // default
watermarker.Add(watermark, noteSlideOptions);
// Add watermark to handout master
PresentationWatermarkMasterHandoutSlideOptions masterHandoutSlideOptions = new PresentationWatermarkMasterHandoutSlideOptions();
watermarker.Add(watermark, masterHandoutSlideOptions);
// Add watermark to notes master
PresentationWatermarkMasterNotesSlideOptions masterNotesSlideOptions = new PresentationWatermarkMasterNotesSlideOptions();
watermarker.Add(watermark, masterNotesSlideOptions);
watermarker.Save();
}
See Also
- class PresentationWatermarkOptions
- namespace GroupDocs.Watermark.Options.Presentation
- assembly GroupDocs.Watermark