com.aspose.words

Class TextWatermarkOptions

  • java.lang.Object
    • com.aspose.words.TextWatermarkOptions
public class TextWatermarkOptions 
extends java.lang.Object

Contains options that can be specified when adding a watermark with text.

Constructor Summary
 
Property Getters/Setters Summary
java.awt.ColorgetColor()
void
setColor(java.awt.Colorvalue)
           Gets or sets font color. The default value is Color.Silver.
java.lang.StringgetFontFamily()
void
setFontFamily(java.lang.Stringvalue)
           Gets or sets font family name. The default value is "Calibri".
floatgetFontSize()
void
setFontSize(floatvalue)
           Gets or sets a font size. The default value is 0 - auto.
booleanisSemitrasparent()
void
isSemitrasparent(booleanvalue)
           Gets or sets a boolean value which is responsible for opacity of the watermark. The default value is True.
intgetLayout()
void
setLayout(intvalue)
           Gets or sets layout of the watermark. The default value is WatermarkLayout.DIAGONAL. The value of the property is WatermarkLayout integer constant.
 

    • Constructor Detail

      • TextWatermarkOptions

        public TextWatermarkOptions()
    • Property Getters/Setters Detail

      • getColor/setColor

        public java.awt.Color getColor() / public void setColor(java.awt.Color value)
        
        Gets or sets font color. The default value is Color.Silver.
      • getFontFamily/setFontFamily

        public java.lang.String getFontFamily() / public void setFontFamily(java.lang.String value)
        
        Gets or sets font family name. The default value is "Calibri".
      • getFontSize/setFontSize

        public float getFontSize() / public void setFontSize(float value)
        
        Gets or sets a font size. The default value is 0 - auto.

        Valid values range from 0 to 65.5 inclusive.

        Auto font size means that the watermark will be scaled to its max width and max height relative to the page margins.

      • isSemitrasparent/isSemitrasparent

        public boolean isSemitrasparent() / public void isSemitrasparent(boolean value)
        
        Gets or sets a boolean value which is responsible for opacity of the watermark. The default value is True.
      • getLayout/setLayout

        public int getLayout() / public void setLayout(int value)
        
        Gets or sets layout of the watermark. The default value is WatermarkLayout.DIAGONAL. The value of the property is WatermarkLayout integer constant.