|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
java.lang.objectcom.spire.doc.documents.bookmarksnavigator
public class bookmarksnavigator
helper class for navigations in document bookmarks and editing bookmarks content.
constructor summary | |
---|---|
bookmarksnavigator(idocument doc)
initializes a new instance of the bookmarksnavigator class. |
method summary | |
---|---|
void |
deletebookmarkcontent(boolean saveformatting)
deletes the bookmark content. |
textbodypart |
getbookmarkcontent()
gets the bookmark content2. |
bookmark |
getcurrentbookmark()
gets the current bookmark. |
idocument |
getdocument()
returns that this object is attached to. |
void |
insertparagraph(iparagraph paragraph)
inserts the paragraph. |
iparagraphbase |
insertparagraphitem(paragraphitemtype itemtype)
inserts the paragraph item to current position. |
void |
inserttable(itable table)
inserts the table. |
itextrange |
inserttext(java.lang.string text)
inserts the text. |
itextrange |
inserttext(java.lang.string text,
boolean saveformatting)
inserts the text range to current position. |
void |
inserttextbodypart(textbodypart bodypart)
inserts the text body part. |
void |
movetobookmark(java.lang.string bookmarkname)
moves the cursor to specified bookmark. |
void |
movetobookmark(java.lang.string bookmarkname,
boolean isstart,
boolean isafter)
moves the cursor to specified bookmark. |
void |
replacebookmarkcontent(java.lang.string text,
boolean saveformatting)
replaces the content of the bookmark. |
void |
replacebookmarkcontent(textbodypart bodypart)
replaces the bookmark content2. |
void |
replacebookmarkcontent(textbodypart bodypart,
boolean iskeepsourcefirstparaformat)
replaces the bookmark content2. |
void |
replacebookmarkcontent(textbodypart bodypart,
boolean iskeepsourcefirstparaformat,
boolean saveformatting)
replaces the content of the bookmark. |
void |
setdocument(idocument value)
setsdocument that this object is attached to. |
constructor detail |
---|
public bookmarksnavigator(idocument doc)
doc
- the doc.method detail |
---|
public idocument getdocument()
public void setdocument(idocument value)
value
- the documentpublic bookmark getcurrentbookmark()
public void movetobookmark(java.lang.string bookmarkname)
bookmarkname
- name of the bookmark.public void movetobookmark(java.lang.string bookmarkname, boolean isstart, boolean isafter)
bookmarkname
- name of the bookmark.isstart
- when true, moves the cursor to the beginning of the bookmark. when false, moves the cursor to the end of the bookmarkisafter
- when true, moves the cursor to be after the bookmark start or end position. when false, moves the cursor to be before the bookmark start or end position.public itextrange inserttext(java.lang.string text)
text
- the text.
public itextrange inserttext(java.lang.string text, boolean saveformatting)
text
- the text.saveformatting
- if it is save formatting, set to true
public void inserttable(itable table)
table
- the table.public iparagraphbase insertparagraphitem(paragraphitemtype itemtype)
itemtype
- type of the item.
public void insertparagraph(iparagraph paragraph)
paragraph
- the paragraph.public void inserttextbodypart(textbodypart bodypart)
bodypart
- >the text body part.public textbodypart getbookmarkcontent()
public void deletebookmarkcontent(boolean saveformatting)
saveformatting
- if its save com.spire.doc.formatting, set to truepublic void replacebookmarkcontent(textbodypart bodypart)
bodypart
- the body part.public void replacebookmarkcontent(textbodypart bodypart, boolean iskeepsourcefirstparaformat)
bodypart
- the body part.iskeepsourcefirstparaformat
- if it is keep the source first paragraph format, set to truepublic void replacebookmarkcontent(textbodypart bodypart, boolean iskeepsourcefirstparaformat, boolean saveformatting)
bodypart
- the body part.iskeepsourcefirstparaformat
- if it is keep the source first paragraph format, set to truesaveformatting
- if it is save formatting, set to truepublic void replacebookmarkcontent(java.lang.string text, boolean saveformatting)
text
- the text.saveformatting
- if it is save formatting, set to true
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |