PresentationFormattedTextFragment
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.search.FormattedTextFragment
All Implemented Interfaces: com.groupdocs.watermark.contents.IPresentationHyperlinkContainer
public class PresentationFormattedTextFragment extends FormattedTextFragment implements IPresentationHyperlinkContainer
Represents a fragment of formatted text in a PowerPoint document.
| Method | Description |
|---|---|
| getText() | Gets the fragment text. |
| getFont() | Gets the font of the text. |
| getForegroundColor() | Gets the foreground color of the text. |
| getBackgroundColor() | Gets the background color of the text. |
| getHyperlink(int actionType) | Gets the hyperlink associated with the text. |
| setHyperlink(int actionType, String url) | Sets the hyperlink associated with the text. |
public String getText()
Gets the fragment text.
Returns: java.lang.String - The fragment text.
public Font getFont()
Gets the font of the text.
Returns: Font - The font of the text.
public Color getForegroundColor()
Gets the foreground color of the text.
Returns: Color - The foreground color of the text.
public Color getBackgroundColor()
Gets the background color of the text.
Returns: Color - The background color of the text.
public final String getHyperlink(int actionType)
Gets the hyperlink associated with the text.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| actionType | int | The action that activates the hyperlink. |
Returns: java.lang.String - The url of the hyperlink that is activated on specified action.
public final void setHyperlink(int actionType, String url)
Sets the hyperlink associated with the text.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| actionType | int | The action that activates the hyperlink. |
| url | java.lang.String | The hyperlink url. |
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.