richtext-j9官方网址
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.