public final class SpreadsheetWatermarkModernWordArtOptions extends SpreadsheetWatermarkBaseOptions
Learn more:
The following example demonstrates how to add a modern WordArt watermark to an Excel document.
SpreadsheetLoadOptions loadOptions = new SpreadsheetLoadOptions(); Watermarker watermarker = new Watermarker("D:\\test.xls", loadOptions); TextWatermark watermark = new TextWatermark("Test", new Font("Arial", 14)); SpreadsheetWatermarkModernWordArtOptions options = new SpreadsheetWatermarkModernWordArtOptions(); options.setWorksheetIndex(-1); // default options.setLocked(false); // default watermarker.save("D:\\watermarked_test.xlsx"); watermarker.close();
Constructor and Description |
---|
SpreadsheetWatermarkModernWordArtOptions()
Initializes a new instance of the
class. |
Modifier and Type | Method and Description |
---|---|
int |
getWorksheetIndex()
Gets the index of worksheet to add the watermark to.
|
void |
setWorksheetIndex(int value)
Sets the index of worksheet to add the watermark to.
|
getAlternativeText, getName, isLocked, setAlternativeText, setLocked, setName
public SpreadsheetWatermarkModernWordArtOptions()
SpreadsheetWatermarkModernWordArtOptions
class.public final int getWorksheetIndex()
Gets the index of worksheet to add the watermark to.
public final void setWorksheetIndex(int value)
Sets the index of worksheet to add the watermark to.
value
- The index of worksheet to add the watermark to.