|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRichTextString
Represents a Rich Text String that can be used to apply several styles inside a single cell.
Method Summary | |
---|---|
void |
append(java.lang.String text,
IFont font)
Appends rich text string with specified text and font. |
void |
clear()
Clears text and formatting. |
void |
clearFormatting()
Clears string formatting. |
IFont |
getFont(int index)
Returns font which is applied to character at the specified position. |
java.lang.String |
getRtfText()
Returns text in rtf format. |
java.lang.String |
getText()
Gets / sets text of the string. |
boolean |
isFormatted()
Indicates whether rich text string has formatting runs. |
void |
setFont(int iStartPos,
int iEndPos,
IFont font)
Sets font for range of characters. |
void |
setText(java.lang.String value)
Gets / sets text of the string. |
Methods inherited from interface com.spire.xls.core.interfacess.IOptimizedUpdate |
---|
beginUpdate, endUpdate |
Method Detail |
---|
IFont getFont(int index)
index
- Character index.
void setFont(int iStartPos, int iEndPos, IFont font)
iStartPos
- First character of the range.iEndPos
- Last character of the range.font
- Font to set.void clearFormatting()
void clear()
void append(java.lang.String text, IFont font)
text
- Text to append.font
- Font to use.java.lang.String getText()
void setText(java.lang.String value)
java.lang.String getRtfText()
boolean isFormatted()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |