SpreadsheetCellPossibleWatermark
Inheritance: java.lang.Object, com.groupdocs.watermark.search.PossibleWatermark
public class SpreadsheetCellPossibleWatermark extends PossibleWatermark
Represents possible cell watermark in an Excel document.
Constructors
| Constructor | Description |
|---|---|
| SpreadsheetCellPossibleWatermark(Cell cell, SpreadsheetWorksheet parent) |
Methods
| Method | Description |
|---|---|
| getParent() | Gets the parent of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark). |
| getWidth() | Gets the width of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) in points. |
| getHeight() | Gets the height of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) in points. |
| getX() | Gets the horizontal offset of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) from content left border in points. |
| getY() | Gets the vertical offset of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) from content top border in points. |
| getRotateAngle() | Gets the rotate angle of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) in degrees. |
| getText() | Gets the text of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark). |
| setText(String value) | Sets the text of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark). |
| getFormattedTextFragments() | Gets the collection of formatted text fragments of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark). |
| getUnitOfMeasurement() | Gets the [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark). |
| remove() |
SpreadsheetCellPossibleWatermark(Cell cell, SpreadsheetWorksheet parent)
public SpreadsheetCellPossibleWatermark(Cell cell, SpreadsheetWorksheet parent)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| cell | com.aspose.cells.Cell | |
| parent | SpreadsheetWorksheet |
getParent()
public ContentPart getParent()
Gets the parent of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
Returns:
ContentPart - The parent of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
getWidth()
public double getWidth()
Gets the width of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) in points.
Returns:
double - The width of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) in points.
getHeight()
public double getHeight()
Gets the height of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) in points.
Returns:
double - The height of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) in points.
getX()
public double getX()
Gets the horizontal offset of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) from content left border in points.
Returns:
double - The x-coordinate of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
getY()
public double getY()
Gets the vertical offset of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) from content top border in points.
Returns:
double - The y-coordinate of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
getRotateAngle()
public double getRotateAngle()
Gets the rotate angle of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) in degrees.
Returns:
double - The rotate angle of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark) in degrees.
getText()
public String getText()
Gets the text of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
Returns:
java.lang.String - The text of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
setText(String value)
public void setText(String value)
Sets the text of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The text of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark). |
getFormattedTextFragments()
public FormattedTextFragmentCollection getFormattedTextFragments()
Gets the collection of formatted text fragments of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
Returns:
FormattedTextFragmentCollection - The collection of formatted text fragments of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
getUnitOfMeasurement()
public int getUnitOfMeasurement()
Gets the [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
Returns:
int - The [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [SpreadsheetCellPossibleWatermark](../../com.groupdocs.watermark.search/spreadsheetcellpossiblewatermark).
remove()
public void remove()