Table of Contents

Method FindBookMark

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

FindBookMark(int)

Locates the bookmark with specified Index.

public virtual IBookMark FindBookMark(int bookMark)

Parameters

bookMark int

The 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

bookMark int

The integer value that specifies Index of the bookmark to find.

line int

The integer value that specifies an index of the text line in where to locate bookmark.

Returns

IBookMark

IBookMark object 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

group int

Specifies bookmark group.

bookMark int

The integer value that specifies Index of the bookmark to find.

line int

The integer value that specifies an index of the text line in where to locate bookmark.

Returns

IBookMark

IBookMark object found.

FindBookMark(string)

Locates the bookmark with specified Name.

public virtual IBookMark FindBookMark(string name)

Parameters

name string

The string value that specifies Name of 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

bookMark int

The integer value that specifies an index of the bookmark to find.

position Point

The out Point value to receive Line and Pos properties 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.