SpreadsheetWatermarkHeaderFooterOptions Class
Represents options when adding the watermark to a Spreadsheet header/footer.
Inheritance Hierarchy

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

The SpreadsheetWatermarkHeaderFooterOptions type exposes the following members.

Constructors
  NameDescription
Public methodSpreadsheetWatermarkHeaderFooterOptions
Initializes a new instance of the SpreadsheetWatermarkHeaderFooterOptions class.
Properties
  NameDescription
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 text watermark into Excel worksheet header.
C#
SpreadsheetLoadOptions loadOptions = new SpreadsheetLoadOptions();
using (Watermarker watermarker = new Watermarker(@"D:\test.xls", loadOptions))
{
    TextWatermark watermark = new TextWatermark("Test", new Font("Arial", 14));

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

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