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
Afficher le fichier Open project: samarjeet27/ynoteclassic

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Clear ( ) : void
Résultat void

ClearIsChanged() public méthode

public ClearIsChanged ( ) : void
Résultat void

CloseFile() public méthode

public CloseFile ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FileTextSource() public méthode

public FileTextSource ( FastColoredTextBox currentTB ) : System
currentTB FastColoredTextBox
Résultat System

GetLineLength() public méthode

public GetLineLength ( int i ) : int
i int
Résultat int

InsertLine() public méthode

public InsertLine ( int index, System.Line line ) : void
index int
line System.Line
Résultat void

LineHasFoldingEndMarker() public méthode

public LineHasFoldingEndMarker ( int iLine ) : bool
iLine int
Résultat bool

LineHasFoldingStartMarker() public méthode

public LineHasFoldingStartMarker ( int iLine ) : bool
iLine int
Résultat bool

OpenFile() public méthode

public OpenFile ( string fileName, Encoding enc ) : void
fileName string
enc System.Text.Encoding
Résultat void

RemoveLine() public méthode

public RemoveLine ( int index, int count ) : void
index int
count int
Résultat void

SaveToFile() public méthode

public SaveToFile ( string fileName, Encoding enc ) : void
fileName string
enc System.Text.Encoding
Résultat void

this() public méthode

public this ( int i ) : System.Line
i int
Résultat System.Line