com.spire.xls
Class RichText
java.lang.Object
com.spire.xls.RichTextObject
com.spire.xls.RichText
- All Implemented Interfaces:
- IOptimizedUpdate, IRichTextString
public class RichText
- extends RichTextObject
|
Method Summary |
ExcelFont |
getFont(int position)
Returns font for character at specified position. |
void |
setFont(int startPos,
int endPos,
ExcelFont font)
Sets font for specified range of characters. |
| Methods inherited from class com.spire.xls.RichTextObject |
append, beginUpdate, clear, clearFormatting, endUpdate, getParent, getRtfText, getText, isFormatted, setFont, setText |
RichText
public RichText(IRichTextString richTextString)
getFont
public ExcelFont getFont(int position)
- Returns font for character at specified position.
- Specified by:
getFont in interface IRichTextString- Overrides:
getFont in class RichTextObject
- Parameters:
position - Position of the symbol.
- Returns:
setFont
public void setFont(int startPos,
int endPos,
ExcelFont font)
- Sets font for specified range of characters.
- Parameters:
startPos - Position of first character.endPos - Position of last character.font - Font to set.