PresentationWatermarkSlideOptions

PresentationWatermarkSlideOptions class

Represents options when adding watermark to a Presentation document slide.

public sealed class PresentationWatermarkSlideOptions : PresentationWatermarkBaseSlideOptions

Constructors

Name Description
PresentationWatermarkSlideOptions() Initializes a new instance of the PresentationWatermarkSlideOptions class.

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.
SlideIndex { get; set; } Gets or sets the index of slide to add the watermark to.

Remarks

Learn more:

Examples

Add watermark to a particular slide of a Power Point presentation.

PresentationLoadOptions loadOptions = new PresentationLoadOptions();
using (Watermarker watermarker = new Watermarker(@"C:\Documents\test.ppt", loadOptions))
{
    TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 36, FontStyle.Bold | FontStyle.Italic));
    watermark.HorizontalAlignment = HorizontalAlignment.Center;
    watermark.VerticalAlignment = VerticalAlignment.Center;

    PresentationWatermarkSlideOptions options = new PresentationWatermarkSlideOptions();
    options.SlideIndex = 0;
    options.IsLocked = false; // default
    options.ProtectWithUnreadableCharacters = false; // default
    options.Name = null; // default
    options.AlternativeText = null; // default

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

See Also