SpreadsheetBackgroundWatermarkOptions Class |
Namespace: GroupDocs.Watermark.Options.Spreadsheet
The SpreadsheetBackgroundWatermarkOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | SpreadsheetBackgroundWatermarkOptions |
Initializes a new instance of the SpreadsheetBackgroundWatermarkOptions class.
|
Name | Description | |
---|---|---|
![]() | BackgroundHeight |
Gets or sets the desired height of the background image in pixels.
|
![]() | BackgroundWidth |
Get or sets the desired width of the background image in pixels.
|
![]() | WorksheetIndex |
Get or sets the index of worksheet to add the watermark to.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
SpreadsheetLoadOptions loadOptions = new SpreadsheetLoadOptions(); using (Watermarker watermarker = new Watermarker(@"C:\Documents\test.xlsx", loadOptions)) { TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 36)); SpreadsheetBackgroundWatermarkOptions options = new SpreadsheetBackgroundWatermarkOptions(); options.WorksheetIndex = -1; // default options.BackgroundWidth = 800; options.BackgroundHeight = 600; watermarker.Add(watermark, options); watermarker.Save(); }