Class TextStyledElement
Inherited Members
Namespace: pdftron.Layout
Assembly: PDFTronDotNet.dll
Syntax
public class TextStyledElement
Constructors
TextStyledElement(IntPtr, object)
Declaration
public TextStyledElement(IntPtr impl, object reference)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | impl | |
| object | reference |
Methods
GetFontFace()
Get the font name used for the style.
Declaration
public string GetFontFace()
Returns
| Type | Description |
|---|---|
| string | The font name used for the style. |
GetFontSize()
Get the font size used for the style.
Declaration
public double GetFontSize()
Returns
| Type | Description |
|---|---|
| double | The font size used for the style. |
IsBold()
Check if the style is set as 'Bold'.
Declaration
public bool IsBold()
Returns
| Type | Description |
|---|---|
| bool | True if the style is set as 'Bold', otherwise false. |
IsItalic()
Check if the style is set as 'italic'.
Declaration
public bool IsItalic()
Returns
| Type | Description |
|---|---|
| bool | True if the style is set as 'italic', otherwise false. |
SetBackgroundColor(byte, byte, byte)
Set the background color for the style.
Declaration
public void SetBackgroundColor(byte red, byte green, byte blue)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | red | The red component of the background color. |
| byte | green | The green component of the background color. |
| byte | blue | The blue component of the background color. |
SetBold(bool)
Set the style as 'Bold'.
Declaration
public void SetBold(bool val)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | val | The new value for 'Bold'. |
SetFontFace(string)
Set the font name to be used for the style.
Declaration
public void SetFontFace(string font_name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | font_name | The font name. |
SetFontSize(double)
Set the font size used for the style.
Declaration
public void SetFontSize(double font_size)
Parameters
| Type | Name | Description |
|---|---|---|
| double | font_size | The font size. |
SetItalic(bool)
Set the style as 'italic'.
Declaration
public void SetItalic(bool val)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | val | The new value for 'italic'. |
SetTextColor(byte, byte, byte)
Set the text color for the style.
Declaration
public void SetTextColor(byte red, byte green, byte blue)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | red | The red value of the color. |
| byte | green | The green value of the color. |
| byte | blue | The blue value of the color. |