SpreadsheetWatermarkShapeOptions Class
Represents options when adding shape watermark to a Spreadsheet worksheet.
Inheritance Hierarchy

Namespace: GroupDocs.Watermark.Options.Spreadsheet
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public sealed class SpreadsheetWatermarkShapeOptions : SpreadsheetWatermarkBaseOptions

The SpreadsheetWatermarkShapeOptions type exposes the following members.

Constructors
  NameDescription
Public methodSpreadsheetWatermarkShapeOptions
Initializes a new instance of the SpreadsheetWatermarkShapeOptions class.
Properties
  NameDescription
Public propertyAlternativeText
Gets or sets the descriptive (alternative) text that will be associated with a shape.
(Inherited from SpreadsheetWatermarkBaseOptions.)
Public propertyEffects
Gets or sets a value of SpreadsheetImageEffects or SpreadsheetTextEffects for effects that should be applied to the watermark.
Public propertyIsLocked
Gets or sets a value indicating whether an editing of the shape in Excel is forbidden.
(Inherited from SpreadsheetWatermarkBaseOptions.)
Public propertyName
Gets or sets the name a shape.
(Inherited from SpreadsheetWatermarkBaseOptions.)
Public propertyWorksheetIndex
Gets or sets the index of worksheet to add the watermark to.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Remarks
Examples
Add watermark to a particular worksheet of an Excel document.
C#
SpreadsheetLoadOptions loadOptions = new SpreadsheetLoadOptions();
using (Watermarker watermarker = new Watermarker(@"C:\Documents\test.xls", loadOptions))
{
    TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 36, FontStyle.Bold | FontStyle.Italic));
    watermark.HorizontalAlignment = HorizontalAlignment.Center;
    watermark.VerticalAlignment = VerticalAlignment.Center;

    SpreadsheetWatermarkShapeOptions options = new SpreadsheetWatermarkShapeOptions();
    options.WorksheetIndex = 0;

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