Table of Contents

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 int

The 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 Point

The Point value that specifies start position to find.

endPoint Point

The 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

line int

Index of the text line.

group int

BookMark Group.

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 Point

The Point value that specifies start position to search.

endPoint Point

The Point value that specifies end position to search.

group int

BookMark Group.

Returns

int

Index of the found bookmark.