Table of Contents

Method GetBookMarks

Namespace
Alternet.Editor.TextSource
Assembly
Alternet.Editor.v9.dll

GetBookMarks(Point, Point, IList<IBookMark>)

Finds all bookmarks in the BookMarks collection located within the specified range.

public virtual int GetBookMarks(Point startPoint, Point endPoint, IList<IBookMark> list)

Parameters

startPoint Point

The Point value that specifies start position to find.

endPoint Point

The Point value that specifies end position to find.

list IList<IBookMark>

Represents the collection of the bookmarks located within the specified range.

Returns

int

The number of the bookmarks located within the specified range.

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.

GetBookMarks(IList<IBookMark>)

Finds all items in the bookmark collection.

public virtual int GetBookMarks(IList<IBookMark> list)

Parameters

list IList<IBookMark>

Represents the collection of the bookmarks located within the specified scope.

Returns

int

Index of the located bookmarks.

GetBookMarks(Point, Point, int, IList<IBookMark>)

Finds all items in the bookmark collection located within the specified scope and associated with specified group.

public virtual int GetBookMarks(Point startPoint, Point endPoint, int group, IList<IBookMark> list)

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.

list IList<IBookMark>

Represents the collection of the bookmarks located within the specified scope.

Returns

int

Index of the found bookmark.

GetBookMarks(int, IList<IBookMark>)

Finds all items in the bookmark collection associated with specified group.

public virtual int GetBookMarks(int group, IList<IBookMark> list)

Parameters

group int

BookMark Group.

list IList<IBookMark>

Represents the collection of the located bookmarks.

Returns

int

Count of the found bookmarks.