|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.doc.documents.TextBodyPart
public class TextBodyPart
Represents a part of text body.
Constructor Summary | |
---|---|
TextBodyPart()
Initializes a new instance of the |
|
TextBodyPart(Document doc)
Initializes a new instance of the |
|
TextBodyPart(TextBodySelection textBodySelection)
Initializes a new instance of the |
|
TextBodyPart(TextSelection textSelection)
Initializes a new instance of the |
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 |
---|
public TextBodyPart()
public TextBodyPart(TextBodySelection textBodySelection)
textBodySelection
- The text body selection.public TextBodyPart(TextSelection textSelection)
textSelection
- The text selection.public TextBodyPart(Document doc)
doc
- The doc.Method Detail |
---|
public BodyRegionCollection getBodyItems()
public void clear()
public void copy(TextSelection textSel)
textSel
- The text selection.public void copy(TextBodySelection textSel)
textSel
- The text selection.public void copy(BodyRegion bodyItem, boolean clone)
bodyItem
- The body item.clone
- if it is to clone, set to public void copy(ParagraphBase pItem, boolean clone)
pItem
- The p item.clone
- if it is to clone, set to public void pasteAfter(BodyRegion bodyItem)
bodyItem
- The body item.public void pasteAfter(ParagraphBase paragraphItem)
paragraphItem
- The paragraph item.public void pasteAt(IBody textBody, int itemIndex)
textBody
- The text body.itemIndex
- Index of the item.public void pasteAt(IBody textBody, int itemIndex, int pItemIndex)
textBody
- The text body.itemIndex
- Index of the item.pItemIndex
- Index of the p item.public void pasteAtEnd(IBody textBody)
textBody
- The text body.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |