irichtextstring-ag凯发旗舰厅



com.spire.xls.core
interface irichtextstring

all superinterfaces:
ioptimizedupdate
all known implementing classes:
richtext, richtextobject, richtextshape, rtfstringarray

public interface irichtextstring
extends ioptimizedupdate

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

getfont

ifont getfont(int index)
returns font which is applied to character at the specified position.
parameters:
index - character index.
returns:
font which is applied to character at the specified position.

setfont

void setfont(int istartpos,
             int iendpos,
             ifont font)
sets font for range of characters.
parameters:
istartpos - first character of the range.
iendpos - last character of the range.
font - font to set.

clearformatting

void clearformatting()
clears string formatting.

clear

void clear()
clears text and formatting.

append

void append(java.lang.string text,
            ifont font)
appends rich text string with specified text and font.
parameters:
text - text to append.
font - font to use.

gettext

java.lang.string gettext()
gets / sets text of the string.

settext

void settext(java.lang.string value)
gets / sets text of the string.

getrtftext

java.lang.string getrtftext()
returns text in rtf format. read-only.

isformatted

boolean isformatted()
indicates whether rich text string has formatting runs. read-only.


网站地图