SpreadsheetContent
Contents
[
Hide
]
SpreadsheetContent class
Represents an Excel document where a watermark can be placed.
public class SpreadsheetContent : Content
Properties
| Name | Description |
|---|---|
| Worksheets { get; } | Gets the collection of all worksheets of this SpreadsheetContent. |
Methods
| Name | Description |
|---|---|
| Decrypt() | Decrypts the document. |
| Dispose() | Disposes the current instance. |
| Encrypt(string) | Encrypts the content. |
| FindImages() | Finds all images in the content. The search is conducted in the objects specified in SearchableObjects. |
| FindImages(ImageSearchCriteria) | Finds images according to the specified search criteria. The search is conducted in the objects specified in SearchableObjects. |
| Search() | Finds all possible watermarks in the content. The search is conducted in the objects specified in SearchableObjects. |
| Search(SearchCriteria) | Finds possible watermarks according to specified search criteria. The search is conducted in the objects specified in SearchableObjects. |
Remarks
Learn more:
- Add watermarks to spreadsheet documents
- Shapes in spreadsheet document
- Working with spreadsheet document attachments
- Working with worksheet backgrounds
- Working with worksheet headers and footers
Examples
Load and save Excel document of any supported type.
SpreadsheetLoadOptions loadOptions = new SpreadsheetLoadOptions();
using (Watermarker watermarker = new Watermarker(@"D:\input.xls", loadOptions))
{
// Use Add method to add watermark to a particular or all worksheets.
// Save changes.
watermarker.Save(@"D:\output.xls");
}
See Also
- class Content
- namespace GroupDocs.Watermark.Contents.Spreadsheet
- assembly GroupDocs.Watermark