#include <ContentTree.h>
A TextStyledElement provides access to the text style properties of a ContentElement.
Definition at line 100 of file ContentTree.h.
UString pdftron::Layout::TextStyledElement::GetFontFace |
( |
| ) |
|
Get the font face name used for the style
- Returns
- the font face name used for the style
double pdftron::Layout::TextStyledElement::GetFontSize |
( |
| ) |
|
Get the font size of the style
- Returns
- The font size of the style
bool pdftron::Layout::TextStyledElement::IsBold |
( |
| ) |
|
Get the bold setting of the style
- Returns
- true if the style is set as 'Bold'
bool pdftron::Layout::TextStyledElement::IsItalic |
( |
| ) |
|
Get the italic setting of the style
- Returns
- true if the style is set as 'Italic'
void pdftron::Layout::TextStyledElement::SetBackgroundColor |
( |
UInt8 |
red, |
|
|
UInt8 |
green, |
|
|
UInt8 |
blue |
|
) |
| |
Set the background color for the style
- Parameters
-
red | The red component of the text color |
green | The green component of the text color |
blue | The blue component of the text color |
void pdftron::Layout::TextStyledElement::SetBold |
( |
bool |
val | ) |
|
Set or unset the style as 'Bold'
- Parameters
-
val | use true to set the style as 'Bold' |
void pdftron::Layout::TextStyledElement::SetFontFace |
( |
const UString & |
font_name | ) |
|
Set the font face name to be used for the style
- Parameters
-
font_name | The font face name to use for the style |
void pdftron::Layout::TextStyledElement::SetFontSize |
( |
double |
font_size | ) |
|
Set font size of the style
- Parameters
-
font_size | The font size to use for the style |
void pdftron::Layout::TextStyledElement::SetItalic |
( |
bool |
val | ) |
|
Set or unset the style as 'italic'
- Parameters
-
val | use true to set the style as 'Italic' |
void pdftron::Layout::TextStyledElement::SetTextColor |
( |
UInt8 |
red, |
|
|
UInt8 |
green, |
|
|
UInt8 |
blue |
|
) |
| |
Set text color for the style
- Parameters
-
red | The red component of the text color |
green | The green component of the text color |
blue | The blue component of the text color |
TRN_TextStyledElement pdftron::Layout::TextStyledElement::m_impl |
The documentation for this class was generated from the following file: