C# Class FastColoredTextBoxNS.FileTextSource

This class contains the source text (chars and styles). It stores a text lines, the manager of commands, undo/redo stack, styles.
Inheritance: TextSource
显示文件 Open project: samarjeet27/ynoteclassic

Public Methods

Method Description
Clear ( ) : void
ClearIsChanged ( ) : void
CloseFile ( ) : void
Dispose ( ) : void
FileTextSource ( FastColoredTextBox currentTB ) : System
GetLineLength ( int i ) : int
InsertLine ( int index, System.Line line ) : void
LineHasFoldingEndMarker ( int iLine ) : bool
LineHasFoldingStartMarker ( int iLine ) : bool
OpenFile ( string fileName, Encoding enc ) : void
RemoveLine ( int index, int count ) : void
SaveToFile ( string fileName, Encoding enc ) : void
this ( int i ) : System.Line

Private Methods

Method Description
DefineEncoding ( Encoding enc, FileStream fs ) : Encoding
DefineShift ( Encoding enc ) : int
LoadLineFromSourceFile ( int i ) : void
ReadLine ( StreamReader sr, int i ) : string
UnloadLine ( int iLine ) : void
UnloadUnusedLines ( ) : void
timer_Tick ( object sender, EventArgs e ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

ClearIsChanged() public method

public ClearIsChanged ( ) : void
return void

CloseFile() public method

public CloseFile ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

FileTextSource() public method

public FileTextSource ( FastColoredTextBox currentTB ) : System
currentTB FastColoredTextBox
return System

GetLineLength() public method

public GetLineLength ( int i ) : int
i int
return int

InsertLine() public method

public InsertLine ( int index, System.Line line ) : void
index int
line System.Line
return void

LineHasFoldingEndMarker() public method

public LineHasFoldingEndMarker ( int iLine ) : bool
iLine int
return bool

LineHasFoldingStartMarker() public method

public LineHasFoldingStartMarker ( int iLine ) : bool
iLine int
return bool

OpenFile() public method

public OpenFile ( string fileName, Encoding enc ) : void
fileName string
enc System.Text.Encoding
return void

RemoveLine() public method

public RemoveLine ( int index, int count ) : void
index int
count int
return void

SaveToFile() public method

public SaveToFile ( string fileName, Encoding enc ) : void
fileName string
enc System.Text.Encoding
return void

this() public method

public this ( int i ) : System.Line
i int
return System.Line