PresentationWatermarkSlideOptions
Leave feedback
On this page
Represents options when adding watermark to a Presentation document slide.
public sealed class PresentationWatermarkSlideOptions : PresentationWatermarkBaseSlideOptions
| Name | Description |
|---|---|
| PresentationWatermarkSlideOptions() | Initializes a new instance of the PresentationWatermarkSlideOptions class. |
| 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. |
Learn more:
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();
}
- class PresentationWatermarkBaseSlideOptions
- namespace GroupDocs.Watermark.Options.Presentation
- assembly GroupDocs.Watermark
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.