richtextshape-ag凯发旗舰厅



com.spire.xls.core.spreadsheet
class richtextshape

java.lang.object
  extended by com.spire.xls.core.spreadsheet.richtextshape
all implemented interfaces:
ioptimizedupdate, irichtextstring

public class richtextshape
extends java.lang.object
implements irichtextstring

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

richtextshape

public richtextshape(java.lang.object parent)
method detail

gettext

public java.lang.string gettext()
description copied from interface: irichtextstring
gets / sets text of the string.
specified by:
gettext in interface irichtextstring

settext

public void settext(java.lang.string value)
description copied from interface: irichtextstring
gets / sets text of the string.
specified by:
settext in interface irichtextstring

getrtftext

public java.lang.string getrtftext()
description copied from interface: irichtextstring
returns text in rtf format. read-only.
specified by:
getrtftext in interface irichtextstring

isformatted

public boolean isformatted()
description copied from interface: irichtextstring
indicates whether rich text string has formatting runs. read-only.
specified by:
isformatted in interface irichtextstring

getparent

public java.lang.object getparent()

getfont

public ifont getfont(int index)
description copied from interface: irichtextstring
returns font which is applied to character at the specified position.
specified by:
getfont in interface irichtextstring
parameters:
index - character index.
returns:
font which is applied to character at the specified position.

setfont

public void setfont(int startindex,
                    int endindex,
                    ifont font)
description copied from interface: irichtextstring
sets font for range of characters.
specified by:
setfont in interface irichtextstring
parameters:
startindex - first character of the range.
endindex - last character of the range.
font - font to set.

clearformatting

public void clearformatting()
description copied from interface: irichtextstring
clears string formatting.
specified by:
clearformatting in interface irichtextstring

clear

public void clear()
description copied from interface: irichtextstring
clears text and formatting.
specified by:
clear in interface irichtextstring

append

public void append(java.lang.string text,
                   ifont font)
description copied from interface: irichtextstring
appends rich text string with specified text and font.
specified by:
append in interface irichtextstring
parameters:
text - text to append.
font - font to use.


网站地图