textbodypart-ag凯发旗舰厅



com.spire.doc.documents
class textbodypart

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

public class textbodypart
extends java.lang.object

represents a part of text body.


constructor summary
textbodypart()
          initializes a new instance of the textbodypart class.
textbodypart(document doc)
          initializes a new instance of the textbodypart class.
textbodypart(textbodyselection textbodyselection)
          initializes a new instance of the textbodypart class.
textbodypart(textselection textselection)
          initializes a new instance of the textbodypart class.
 
method summary
 void clear()
          clears this instance.
 void copy(bodyregion bodyitem, boolean clone)
          copies the specified body item.
 void copy(paragraphbase pitem, boolean clone)
          copies the specified p item.
 void copy(textbodyselection textsel)
          copies text from selection.
 void copy(textselection textsel)
          copies text from selection.
 bodyregioncollection getbodyitems()
          gets the body items.
 void pasteafter(bodyregion bodyitem)
          pastes after specified item.
 void pasteafter(paragraphbase paragraphitem)
          pastes after specified paragraph item.
 void pasteat(ibody textbody, int itemindex)
          pastes at specified position.
 void pasteat(ibody textbody, int itemindex, int pitemindex)
          pastes at specified position.
 void pasteatend(ibody textbody)
          pastes at end of textbody.
 
constructor detail

textbodypart

public textbodypart()
initializes a new instance of the textbodypart class.

textbodypart

public textbodypart(textbodyselection textbodyselection)
initializes a new instance of the textbodypart class.
parameters:
textbodyselection - the text body selection.

textbodypart

public textbodypart(textselection textselection)
initializes a new instance of the textbodypart class.
parameters:
textselection - the text selection.

textbodypart

public textbodypart(document doc)
initializes a new instance of the textbodypart class.
parameters:
doc - the doc.
method detail

getbodyitems

public bodyregioncollection getbodyitems()
gets the body items.
returns:
the body items.

clear

public void clear()
clears this instance.

copy

public void copy(textselection textsel)
copies text from selection.
parameters:
textsel - the text selection.

copy

public void copy(textbodyselection textsel)
copies text from selection.
parameters:
textsel - the text selection.

copy

public void copy(bodyregion bodyitem,
                 boolean clone)
copies the specified body item.
parameters:
bodyitem - the body item.
clone - if it is to clone, set to true

copy

public void copy(paragraphbase pitem,
                 boolean clone)
copies the specified p item.
parameters:
pitem - the p item.
clone - if it is to clone, set to true

pasteafter

public void pasteafter(bodyregion bodyitem)
pastes after specified item.
parameters:
bodyitem - the body item.

pasteafter

public void pasteafter(paragraphbase paragraphitem)
pastes after specified paragraph item.
parameters:
paragraphitem - the paragraph item.

pasteat

public void pasteat(ibody textbody,
                    int itemindex)
pastes at specified position.
parameters:
textbody - the text body.
itemindex - index of the item.

pasteat

public void pasteat(ibody textbody,
                    int itemindex,
                    int pitemindex)
pastes at specified position.
parameters:
textbody - the text body.
itemindex - index of the item.
pitemindex - index of the p item.

pasteatend

public void pasteatend(ibody textbody)
pastes at end of textbody.
parameters:
textbody - the text body.


网站地图