textbodyselection-ag凯发旗舰厅



com.spire.doc.documents
class textbodyselection

java.lang.object
  extended by com.spire.doc.documents.textbodyselection

public class textbodyselection
extends java.lang.object

represents a selection of part of text body.


constructor summary
textbodyselection(ibody textbody, int itemstartindex, int itemendindex, int pitemstartindex, int pitemendindex)
          initializes a new instance of the textbodyselection class.
textbodyselection(paragraphbase itemstart, paragraphbase itemend)
          initializes a new instance of the textbodyselection class.
 
method summary
 int getitemendindex()
          gets the end index of the text body item.
 int getitemstartindex()
          gets the start index of the text body item.
 int getparagraphitemendindex()
          gets the end index of the paragraph item.
 int getparagraphitemstartindex()
          gets the start index of the paragraph item.
 body gettextbody()
          gets the text body.
 void setitemendindex(int value)
          sets the end index of the text body item.
 void setitemstartindex(int value)
          sets the start index of the text body item.
 void setparagraphitemendindex(int value)
          sets the end index of the paragraph item.
 void setparagraphitemstartindex(int value)
          sets the start index of the paragraph item.
 
constructor detail

textbodyselection

public textbodyselection(paragraphbase itemstart,
                         paragraphbase itemend)
initializes a new instance of the textbodyselection class.
parameters:
itemstart - the item start.
itemend - the item end.

textbodyselection

public textbodyselection(ibody textbody,
                         int itemstartindex,
                         int itemendindex,
                         int pitemstartindex,
                         int pitemendindex)
initializes a new instance of the textbodyselection class.
parameters:
textbody - the text body.
itemstartindex - start index of the item.
itemendindex - end index of the item.
pitemstartindex - start index of the paragraph item.
pitemendindex - end index of the paragraph item.
method detail

gettextbody

public body gettextbody()
gets the text body.
returns:
the text body.

getitemstartindex

public int getitemstartindex()
gets the start index of the text body item.
returns:
the start index of the item.<

setitemstartindex

public void setitemstartindex(int value)
sets the start index of the text body item.
parameters:
value - the start index of the item.<

getitemendindex

public int getitemendindex()
gets the end index of the text body item.
returns:
the end index of the item.

setitemendindex

public void setitemendindex(int value)
sets the end index of the text body item.
parameters:
value - the end index of the item.

getparagraphitemstartindex

public int getparagraphitemstartindex()
gets the start index of the paragraph item.
returns:
the start index of the item.

setparagraphitemstartindex

public void setparagraphitemstartindex(int value)
sets the start index of the paragraph item.
parameters:
value - the start index of the item.

getparagraphitemendindex

public int getparagraphitemendindex()
gets the end index of the paragraph item.
returns:
the end index of the item.

setparagraphitemendindex

public void setparagraphitemendindex(int value)
sets the end index of the paragraph item.
parameters:
value - the end index of the item.


网站地图