Method FindBookMark
FindBookMark(int)
Locates the bookmark with specified Index
.
public virtual IBookMark FindBookMark(int bookMark)
Parameters
bookMark
intThe integer value that specifies an index of the bookmark to find.
Returns
- IBookMark
IBookmark object if the bookmarks was found; otherwise null.
FindBookMark(int, int)
Locates the bookmark with specified index within the specified line.
public virtual IBookMark FindBookMark(int bookMark, int line)
Parameters
bookMark
intThe integer value that specifies
Index
of the bookmark to find.line
intThe integer value that specifies an index of the text line in where to locate bookmark.
Returns
- IBookMark
IBookMark
object found.
FindBookMark(int, int, int)
Locates the bookmark with specified index within the specified line.
public virtual IBookMark FindBookMark(int group, int bookMark, int line)
Parameters
group
intSpecifies bookmark group.
bookMark
intThe integer value that specifies
Index
of the bookmark to find.line
intThe integer value that specifies an index of the text line in where to locate bookmark.
Returns
- IBookMark
IBookMark
object found.
FindBookMark(string)
Locates the bookmark with specified Name
.
public virtual IBookMark FindBookMark(string name)
Parameters
name
stringThe string value that specifies
Name
of the bookmark to find.
Returns
- IBookMark
IBookmark object if the bookmarks was found; otherwise null.
FindBookMark(int, out Point)
Locates the bookmark with specified Index
.
public virtual bool FindBookMark(int bookMark, out Point position)
Parameters
bookMark
intThe integer value that specifies an index of the bookmark to find.
position
PointThe out Point value to receive
Line
andPos
properties of the found bookmark.
Returns
- bool
True if the bookmark is found; otherwise false.
Remarks
If the search is not successful the Point parameter obtain empty value.