WordProcessingTextPossibleWatermark
Inheritance: java.lang.Object, com.groupdocs.watermark.search.PossibleWatermark
public class WordProcessingTextPossibleWatermark extends PossibleWatermark
Represents possible watermark in a Word document text.
Constructors
| Constructor | Description | 
|---|---|
| WordProcessingTextPossibleWatermark(ContentPart parent, ReplacingArgs replacingArgs) | 
Methods
| Method | Description | 
|---|---|
| getParent() | Gets the parent of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark). | 
| getWidth() | Gets the width of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark)> in points. | 
| getHeight() | Gets the height of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark) in points. | 
| getX() | Gets the horizontal offset of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark) from document left border in points. | 
| getY() | Gets the vertical offset of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark) from document top border in points. | 
| getRotateAngle() | Gets the rotate angle of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark) in degrees. | 
| getText() | Gets the text of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark). | 
| setText(String value) | Sets the text of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark). | 
| getFormattedTextFragments() | Gets the collection of formatted text fragments of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark). | 
| getUnitOfMeasurement() | Gets the [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark). | 
| remove() | 
WordProcessingTextPossibleWatermark(ContentPart parent, ReplacingArgs replacingArgs)
public WordProcessingTextPossibleWatermark(ContentPart parent, ReplacingArgs replacingArgs)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| parent | ContentPart | |
| replacingArgs | com.aspose.words.ReplacingArgs | 
getParent()
public ContentPart getParent()
Gets the parent of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark).
Returns:
ContentPart - The parent of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark).
getWidth()
public double getWidth()
Gets the width of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark)> in points.
Returns: double - The value is always 0 for this type of possible watermark.
getHeight()
public double getHeight()
Gets the height of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark) in points.
Returns: double - The value is always 0 for this type of possible watermark.
getX()
public double getX()
Gets the horizontal offset of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark) from document left border in points.
Returns: double - The value is always 0 for this type of possible watermark.
getY()
public double getY()
Gets the vertical offset of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark) from document top border in points.
Returns: double - The value is always 0 for this type of possible watermark.
getRotateAngle()
public double getRotateAngle()
Gets the rotate angle of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark) in degrees.
Returns: double - The value is always 0 for this type of possible watermark.
getText()
public String getText()
Gets the text of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark).
Returns:
java.lang.String - The text of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark).
setText(String value)
public void setText(String value)
Sets the text of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark).
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.lang.String | The text of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark). | 
getFormattedTextFragments()
public FormattedTextFragmentCollection getFormattedTextFragments()
Gets the collection of formatted text fragments of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark).
Returns:
FormattedTextFragmentCollection - The collection of formatted text fragments of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark).
getUnitOfMeasurement()
public int getUnitOfMeasurement()
Gets the [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark).
Returns:
int - The [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [WordProcessingTextPossibleWatermark](../../com.groupdocs.watermark.search/wordprocessingtextpossiblewatermark).
remove()
public void remove()