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

This class handles the bookmarks for a buffer
상속: ICustomLineManager
파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox

공개 메소드들

메소드 설명
AddCustomLine ( int lineNr, Color customColor, bool readOnly ) : void Set Custom Line at the line lineNr
AddCustomLine ( int startLineNr, int endLineNr, Color customColor, bool readOnly ) : void Add Custom Lines from the line startLineNr to the line endLineNr
Clear ( ) : void Clears all custom lines
CustomLineManager ( ILineManager lineTracker ) : System

Creates a new instance of CustomLineManager

GetCustomColor ( int lineNr, Color defaultColor ) : Color Returns the Color if the line lineNr has custom bg color otherwise returns defaultColor
IsReadOnly ( ISelection selection, bool defaultReadOnly ) : bool Returns true if selection is read only
IsReadOnly ( int lineNr, bool defaultReadOnly ) : bool Returns the ReadOnly if the line lineNr is custom otherwise returns default
RemoveCustomLine ( int lineNr ) : void Remove Custom Line at the line lineNr

비공개 메소드들

메소드 설명
MoveIndices ( object sender, LineManagerEventArgs e ) : void

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

OnBeforeChanged ( ) : void
OnChanged ( ) : void

메소드 상세

AddCustomLine() 공개 메소드

Set Custom Line at the line lineNr
public AddCustomLine ( int lineNr, Color customColor, bool readOnly ) : void
lineNr int
customColor Color
readOnly bool
리턴 void

AddCustomLine() 공개 메소드

Add Custom Lines from the line startLineNr to the line endLineNr
public AddCustomLine ( int startLineNr, int endLineNr, Color customColor, bool readOnly ) : void
startLineNr int
endLineNr int
customColor Color
readOnly bool
리턴 void

Clear() 공개 메소드

Clears all custom lines
public Clear ( ) : void
리턴 void

CustomLineManager() 공개 메소드

Creates a new instance of CustomLineManager
public CustomLineManager ( ILineManager lineTracker ) : System
lineTracker ILineManager
리턴 System

GetCustomColor() 공개 메소드

Returns the Color if the line lineNr has custom bg color otherwise returns defaultColor
public GetCustomColor ( int lineNr, Color defaultColor ) : Color
lineNr int
defaultColor Color
리턴 Color

IsReadOnly() 공개 메소드

Returns true if selection is read only
public IsReadOnly ( ISelection selection, bool defaultReadOnly ) : bool
selection ISelection
defaultReadOnly bool
리턴 bool

IsReadOnly() 공개 메소드

Returns the ReadOnly if the line lineNr is custom otherwise returns default
public IsReadOnly ( int lineNr, bool defaultReadOnly ) : bool
lineNr int
defaultReadOnly bool
리턴 bool

RemoveCustomLine() 공개 메소드

Remove Custom Line at the line lineNr
public RemoveCustomLine ( int lineNr ) : void
lineNr int
리턴 void