Method GetBookMark
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v9.dll
GetBookMark(int)
Finds the first bookmark in the BookMarks
collection located within the specified text line.
public virtual int GetBookMark(int line)
Parameters
line
intThe 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
startPoint
PointThe Point value that specifies start position to find.
endPoint
PointThe 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
startPoint
PointThe Point value that specifies start position to search.
endPoint
PointThe Point value that specifies end position to search.
group
intBookMark
Group.
Returns
- int
Index of the found bookmark.