Method GetBookMark
GetBookMark(int)
Finds the first bookmark in the BookMarks collection located within the specified text line.
public virtual int GetBookMark(int line)
Parameters
lineintThe integer value that specifies an index of the text line where to find bookmark.
Returns
- int
Bookmark index if the bookmarks was found; otherwise -1.
GetBookMark(Point, Point)
Finds the first bookmark in the BookMarks collection that locates within the specified range.
public virtual int GetBookMark(Point startPoint, Point endPoint)
Parameters
startPointPointThe Point value that specifies start position to find.
endPointPointThe Point value that specifies end position to find.
Returns
- int
Bookmark index if the bookmarks was found; otherwise -1.
Remarks
The X-coordinates of the startPoint and endPoint structures represents the position within the text line. The Y-coordinates represents the index of the text line.
GetBookMark(int, int)
Finds the first item in the bookmark collection located within the specified text line and associated with specified group.
public virtual int GetBookMark(int line, int group)
Parameters
Returns
- int
Index of the found bookmark.
GetBookMark(Point, Point, int)
Finds the first item in the bookmark collection located within the specified scope and associated with specified group.
public virtual int GetBookMark(Point startPoint, Point endPoint, int group)
Parameters
startPointPointThe Point value that specifies start position to search.
endPointPointThe Point value that specifies end position to search.
groupintBookMarkGroup.
Returns
- int
Index of the found bookmark.