C# 클래스 ICSharpCode.TextEditor.Document.BookmarkManager

This class handles the bookmarks for a buffer
파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox 1 사용 예제들

공개 메소드들

메소드 설명
AddMark ( Bookmark mark ) : void
BookmarkManager ( IDocument document, ILineManager lineTracker ) : System

Creates a new instance of BookmarkManager

Clear ( ) : void Clears all bookmark
GetFirstMark ( Predicate predicate ) : Bookmark
GetLastMark ( Predicate predicate ) : Bookmark
GetNextMark ( int curLineNr ) : Bookmark
GetNextMark ( int curLineNr, Predicate predicate ) : Bookmark returns first mark higher than lineNr
GetPrevMark ( int curLineNr ) : Bookmark
GetPrevMark ( int curLineNr, Predicate predicate ) : Bookmark returns first mark lower than lineNr
IsMarked ( int lineNr ) : bool
RemoveMark ( Bookmark mark ) : void
RemoveMarks ( Predicate predicate ) : void
ToggleMarkAt ( int lineNr ) : void

Sets the mark at the line lineNr if it is not set, if the line is already marked the mark is cleared.

보호된 메소드들

메소드 설명
OnAdded ( ICSharpCode.TextEditor.Document.BookmarkEventArgs e ) : void
OnChanged ( EventArgs e ) : void
OnRemoved ( ICSharpCode.TextEditor.Document.BookmarkEventArgs e ) : void

비공개 메소드들

메소드 설명
AcceptAnyMarkPredicate ( Bookmark mark ) : bool
MoveIndices ( object sender, LineManagerEventArgs e ) : void

This method moves all indices from index upward count lines (useful for deletion/insertion of text)

메소드 상세

AddMark() 공개 메소드

public AddMark ( Bookmark mark ) : void
mark Bookmark
리턴 void

BookmarkManager() 공개 메소드

Creates a new instance of BookmarkManager
public BookmarkManager ( IDocument document, ILineManager lineTracker ) : System
document IDocument
lineTracker ILineManager
리턴 System

Clear() 공개 메소드

Clears all bookmark
public Clear ( ) : void
리턴 void

GetFirstMark() 공개 메소드

public GetFirstMark ( Predicate predicate ) : Bookmark
predicate Predicate
리턴 Bookmark

GetLastMark() 공개 메소드

public GetLastMark ( Predicate predicate ) : Bookmark
predicate Predicate
리턴 Bookmark

GetNextMark() 공개 메소드

public GetNextMark ( int curLineNr ) : Bookmark
curLineNr int
리턴 Bookmark

GetNextMark() 공개 메소드

returns first mark higher than lineNr
public GetNextMark ( int curLineNr, Predicate predicate ) : Bookmark
curLineNr int
predicate Predicate
리턴 Bookmark

GetPrevMark() 공개 메소드

public GetPrevMark ( int curLineNr ) : Bookmark
curLineNr int
리턴 Bookmark

GetPrevMark() 공개 메소드

returns first mark lower than lineNr
public GetPrevMark ( int curLineNr, Predicate predicate ) : Bookmark
curLineNr int
predicate Predicate
리턴 Bookmark

IsMarked() 공개 메소드

public IsMarked ( int lineNr ) : bool
lineNr int
리턴 bool

OnAdded() 보호된 메소드

protected OnAdded ( ICSharpCode.TextEditor.Document.BookmarkEventArgs e ) : void
e ICSharpCode.TextEditor.Document.BookmarkEventArgs
리턴 void

OnChanged() 보호된 메소드

protected OnChanged ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnRemoved() 보호된 메소드

protected OnRemoved ( ICSharpCode.TextEditor.Document.BookmarkEventArgs e ) : void
e ICSharpCode.TextEditor.Document.BookmarkEventArgs
리턴 void

RemoveMark() 공개 메소드

public RemoveMark ( Bookmark mark ) : void
mark Bookmark
리턴 void

RemoveMarks() 공개 메소드

public RemoveMarks ( Predicate predicate ) : void
predicate Predicate
리턴 void

ToggleMarkAt() 공개 메소드

Sets the mark at the line lineNr if it is not set, if the line is already marked the mark is cleared.
public ToggleMarkAt ( int lineNr ) : void
lineNr int
리턴 void