public class PresentationFormattedTextFragment extends FormattedTextFragment implements IPresentationHyperlinkContainer
Represents a fragment of formatted text in a PowerPoint document.
Modifier and Type | Method and Description |
---|---|
Color |
getBackgroundColor()
Gets the background color of the text.
|
Font |
getFont()
Gets the font of the text.
|
Color |
getForegroundColor()
Gets the foreground color of the text.
|
String |
getHyperlink(int actionType)
Gets the hyperlink associated with the text.
|
String |
getText()
Gets the fragment text.
|
void |
setHyperlink(int actionType,
String url)
Sets the hyperlink associated with the text.
|
public String getText()
Gets the fragment text.
getText
in class FormattedTextFragment
public Font getFont()
Gets the font of the text.
getFont
in class FormattedTextFragment
public Color getForegroundColor()
Gets the foreground color of the text.
getForegroundColor
in class FormattedTextFragment
public Color getBackgroundColor()
Gets the background color of the text.
getBackgroundColor
in class FormattedTextFragment
public final String getHyperlink(int actionType)
Gets the hyperlink associated with the text.
getHyperlink
in interface IPresentationHyperlinkContainer
actionType
- The action that activates the hyperlink.public final void setHyperlink(int actionType, String url)
Sets the hyperlink associated with the text.
setHyperlink
in interface IPresentationHyperlinkContainer
actionType
- The action that activates the hyperlink.url
- The hyperlink url.