WatermarkTextOptions
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject, com.groupdocs.conversion.options.convert.WatermarkOptions
public class WatermarkTextOptions extends WatermarkOptions
Options for settings text watermark to the converted document
| Constructor | Description |
|---|---|
| WatermarkTextOptions(String text) |
| Method | Description |
|---|---|
| getText() | Watermark text |
| setText(String value) | Watermark text |
| getWatermarkFont() | Watermark font if text watermark is applied |
| setWatermarkFont(Font watermarkFont) | Sets Watermark font if text watermark is applied |
| getColor() | Watermark font color if text watermark is applied |
| getColorInternal() | |
| setColor(int argb) | Watermark font color as argb if text watermark is applied |
| setColor(String colorName) | Watermark font color name if text watermark is applied |
| setColor(Color value) | Watermark font color if text watermark is applied |
| getHexColor() |
public WatermarkTextOptions(String text)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| text | java.lang.String |
public final String getText()
Watermark text
Returns: java.lang.String
public final void setText(String value)
Watermark text
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public Font getWatermarkFont()
Watermark font if text watermark is applied
Returns: Font - font
public void setWatermarkFont(Font watermarkFont)
Sets Watermark font if text watermark is applied
Parameters:
| Parameter | Type | Description |
|---|---|---|
| watermarkFont | Font | font |
public final Color getColor()
Watermark font color if text watermark is applied
Returns: java.awt.Color
public System.Drawing.Color getColorInternal()
Returns: com.aspose.ms.System.Drawing.Color
public final void setColor(int argb)
Watermark font color as argb if text watermark is applied
Parameters:
| Parameter | Type | Description |
|---|---|---|
| argb | int |
public final void setColor(String colorName)
Watermark font color name if text watermark is applied
Parameters:
| Parameter | Type | Description |
|---|---|---|
| colorName | java.lang.String |
public final void setColor(Color value)
Watermark font color if text watermark is applied
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.awt.Color |
public String getHexColor()
Returns: java.lang.String
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.