|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.xls.core.spreadsheet.RichTextShape
public class RichTextShape
| Constructor Summary | |
|---|---|
RichTextShape(java.lang.Object parent)
|
|
| 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.Object |
getParent()
|
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 startIndex,
int endIndex,
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 |
| Constructor Detail |
|---|
public RichTextShape(java.lang.Object parent)
| Method Detail |
|---|
public java.lang.String getText()
IRichTextString
getText in interface IRichTextStringpublic void setText(java.lang.String value)
IRichTextString
setText in interface IRichTextStringpublic java.lang.String getRtfText()
IRichTextString
getRtfText in interface IRichTextStringpublic boolean isFormatted()
IRichTextString
isFormatted in interface IRichTextStringpublic java.lang.Object getParent()
public IFont getFont(int index)
IRichTextString
getFont in interface IRichTextStringindex - Character index.
public void setFont(int startIndex,
int endIndex,
IFont font)
IRichTextString
setFont in interface IRichTextStringstartIndex - First character of the range.endIndex - Last character of the range.font - Font to set.public void clearFormatting()
IRichTextString
clearFormatting in interface IRichTextStringpublic void clear()
IRichTextString
clear in interface IRichTextString
public void append(java.lang.String text,
IFont font)
IRichTextString
append in interface IRichTextStringtext - Text to append.font - Font to use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||