SpreadsheetWatermarkHeaderFooterOptions
Leave feedback
On this page
Represents options when adding the watermark to a Spreadsheet header/footer.
public sealed class SpreadsheetWatermarkHeaderFooterOptions : WatermarkOptions
| Name | Description |
|---|---|
| SpreadsheetWatermarkHeaderFooterOptions() | Initializes a new instance of the SpreadsheetWatermarkHeaderFooterOptions class. |
| Name | Description |
|---|---|
| WorksheetIndex { get; set; } | Gets or sets the index of worksheet to add the watermark to. |
Learn more:
Add text watermark into Excel worksheet header.
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();
}
- class WatermarkOptions
- namespace GroupDocs.Watermark.Options.Spreadsheet
- 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.