Method FindBookMark
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v10.dll
FindBookMark(int)
Locates the bookmark with specified Index.
public virtual IBookMark FindBookMark(int bookMark)
Parameters
bookMarkintThe 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
bookMarkintThe integer value that specifies
Indexof the bookmark to find.lineintThe integer value that specifies an index of the text line in where to locate bookmark.
Returns
- IBookMark
IBookMarkobject 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
groupintSpecifies bookmark group.
bookMarkintThe integer value that specifies
Indexof the bookmark to find.lineintThe integer value that specifies an index of the text line in where to locate bookmark.
Returns
- IBookMark
IBookMarkobject found.
FindBookMark(string)
Locates the bookmark with specified Name.
public virtual IBookMark FindBookMark(string name)
Parameters
namestringThe string value that specifies
Nameof 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
bookMarkintThe integer value that specifies an index of the bookmark to find.
positionPointThe out Point value to receive
LineandPosproperties 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.