|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.xls.RichTextObject
public class RichTextObject
| Field Summary | |
|---|---|
IRichTextString |
m_richText
Parent range. |
| Constructor Summary | |
|---|---|
RichTextObject(IRichTextString richText)
|
|
| Method Summary | |
|---|---|
void |
append(java.lang.String text,
IFont font)
Appends rich text string with specified text and font. |
void |
beginUpdate()
This method should be called before several updates to the object will take place. |
void |
clear()
Clears all. |
void |
clearFormatting()
Clears formatting. |
void |
endUpdate()
This method should be called after several updates to the object took place. |
IFont |
getFont(int position)
Returns font for character at specified position. |
java.lang.Object |
getParent()
|
java.lang.String |
getRtfText()
Gets rtf text. |
java.lang.String |
getText()
Gets text; |
boolean |
isFormatted()
Indicates whether rich text string contains formatting read-only. |
void |
setFont(int startPos,
int endPos,
IFont font)
Sets font for specified range of characters. |
void |
setText(java.lang.String text)
Sets text; |
| Field Detail |
|---|
public IRichTextString m_richText
| Constructor Detail |
|---|
public RichTextObject(IRichTextString richText)
| Method Detail |
|---|
public IFont getFont(int position)
getFont in interface IRichTextStringposition - Position of the symbol.
public void setFont(int startPos,
int endPos,
IFont font)
setFont in interface IRichTextStringstartPos - First character to set font.endPos - Last character to set.font - Font to set.public void clearFormatting()
clearFormatting in interface IRichTextStringpublic void clear()
clear in interface IRichTextStringpublic java.lang.String getText()
getText in interface IRichTextStringpublic void setText(java.lang.String text)
setText in interface IRichTextStringpublic java.lang.String getRtfText()
getRtfText in interface IRichTextStringpublic boolean isFormatted()
isFormatted in interface IRichTextStringpublic java.lang.Object getParent()
public void beginUpdate()
beginUpdate in interface IOptimizedUpdatepublic void endUpdate()
endUpdate in interface IOptimizedUpdate
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 | ||||||||