com.spire.xls
Class RichText

java.lang.Object
  extended by com.spire.xls.RichTextObject
      extended by com.spire.xls.RichText
All Implemented Interfaces:
IOptimizedUpdate, IRichTextString

public class RichText
extends RichTextObject


Field Summary
 
Fields inherited from class com.spire.xls.RichTextObject
m_richText
 
Constructor Summary
RichText(IRichTextString richTextString)
           
 
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
 

Constructor Detail

RichText

public RichText(IRichTextString richTextString)
Method Detail

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.