RtfFormatting
Inheritance: java.lang.Object, com.aspose.pdf.rtf.rtfstructure.RtfFormatting
All Implemented Interfaces: Cloneable
public class RtfFormatting extends Object implements Cloneable
A snapshot of the formatting state. It is a class to be passed by reference on the stack.
Constructors
| Constructor | Description |
|---|---|
| RtfFormatting |
Methods
| Method | Description |
|---|---|
| clone | |
| getBackgroundColorIndex | Index of background color from color table. |
| getFontIndex | Font index. |
| getFontSize | Font size. |
| getForegroundColorIndex | Index of foreground color from color table. |
| getUnicodeCharSkipCount | Offset for Unicode character skip. |
| isBold | Defines if current content is bold. |
| isItalic | Defines if current content is italic. |
| isStrikethrough | Defines if current content is strikethrough. |
| isUnderline | Defines if current content is underline. |
| setBackgroundColorIndex | Index of background color from color table. |
| setBold | Defines if current content is bold. |
| setFontIndex | Font index. |
| setFontSize | Font size. |
| setForegroundColorIndex | Index of foreground color from color table. |
| setItalic | Defines if current content is italic. |
| setStrikethrough | Defines if current content is strikethrough. |
| setUnderline | Defines if current content is underline. |
| setUnicodeCharSkipCount | Offset for Unicode character skip. |
RtfFormatting
public RtfFormatting()
clone
public final RtfFormatting clone()
getBackgroundColorIndex
public final int getBackgroundColorIndex()
Index of background color from color table.
getFontIndex
public final com.aspose.ms.System.Nullable< Integer > getFontIndex()
Font index.
getFontSize
public final int getFontSize()
Font size.
getForegroundColorIndex
public final int getForegroundColorIndex()
Index of foreground color from color table.
getUnicodeCharSkipCount
public final int getUnicodeCharSkipCount()
Offset for Unicode character skip.
isBold
public final boolean isBold()
Defines if current content is bold.
isItalic
public final boolean isItalic()
Defines if current content is italic.
isStrikethrough
public final boolean isStrikethrough()
Defines if current content is strikethrough.
isUnderline
public final boolean isUnderline()
Defines if current content is underline.
setBackgroundColorIndex
public final void setBackgroundColorIndex(int value)
Index of background color from color table.
setBold
public final void setBold(boolean value)
Defines if current content is bold.
setFontIndex
Font index.
setFontSize
public final void setFontSize(int value)
Font size.
setForegroundColorIndex
public final void setForegroundColorIndex(int value)
Index of foreground color from color table.
setItalic
public final void setItalic(boolean value)
Defines if current content is italic.
setStrikethrough
public final void setStrikethrough(boolean value)
Defines if current content is strikethrough.
setUnderline
public final void setUnderline(boolean value)
Defines if current content is underline.
setUnicodeCharSkipCount
public final void setUnicodeCharSkipCount(int value)
Offset for Unicode character skip.