| java.lang.Object | ||
| ↳ | com.pdftron.layout.ContentElement | |
| ↳ | com.pdftron.layout.TextStyledElement | |
A TextStyledElement provides access to the text style properties of a
ContentElement.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static void | SetBackgroundColor(long self, int red, int green, int blue) | ||||||||||
| String |
getFontFace()
Get the font face name used for the style
| ||||||||||
| double |
getFontSize()
Get the font size of the style
| ||||||||||
| boolean |
isBold()
Get the bold setting of the style
| ||||||||||
| boolean |
isItalic()
Get the italic setting of the style
| ||||||||||
| void |
setBackgroundColor(int red, int green, int blue)
Sets the background color for the style.
| ||||||||||
| void |
setBold(boolean val)
Set or unset the style as 'Bold'
| ||||||||||
| void |
setFontFace(String fontface)
Set the font face name to be used for the style
| ||||||||||
| void |
setFontSize(double fontsize)
Set font size of the style
| ||||||||||
| void |
setItalic(boolean val)
Set or unset the style as 'italic'
| ||||||||||
| void |
setTextColor(int red, int green, int blue)
Set text color for the style
The color values must be between 0 and 255, otherwise an exception will
be thrown.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.layout.ContentElement
| |||||||||||
From class
java.lang.Object
| |||||||||||
| PDFNetException |
|---|
Get the font face name used for the style
| PDFNetException |
|---|
Get the italic setting of the style
| PDFNetException |
|---|
Sets the background color for the style.
| red | The red component of the background color. |
|---|---|
| green | The green component of the background color. |
| blue | The blue component of the background color. |
| PDFNetException |
|---|
Set or unset the style as 'Bold'
| val | use true to set the style as 'Bold' |
|---|
| PDFNetException |
|---|
Set the font face name to be used for the style
| fontface | The font face name to use for the style |
|---|
| PDFNetException |
|---|
Set font size of the style
| fontsize | The font size to use for the style |
|---|
| PDFNetException |
|---|
Set or unset the style as 'italic'
| val | use true to set the style as 'Italic' |
|---|
| PDFNetException |
|---|
Set text color for the style The color values must be between 0 and 255, otherwise an exception will be thrown.
| red | The red component of the text color |
|---|---|
| green | The green component of the text color |
| blue | The blue component of the text color |
| IllegalArgumentException | if any of the color values is out of range |
|---|---|
| PDFNetException |