C# Class ICSharpCode.TextEditor.TextEditorControlBase

Inheritance: System.Windows.Forms.UserControl
Afficher le fichier Open project: Clancey/MonoMac.Windows.Form Class Usage Examples

Protected Properties

Свойство Type Description
editactions IEditAction>.Dictionary

Private Properties

Свойство Type Description
GenerateDefaultActions void
GetEditAction IEditAction
OnDocumentChanged void
ParseFont System.Drawing.Font

Méthodes publiques

Méthode Description
BeginUpdate ( ) : void Call this method before a long update operation this 'locks' the text area so that no screen update occurs.
CanSaveWithCurrentEncoding ( ) : bool

Gets if the document can be saved with the current encoding without losing data.

EndUpdate ( ) : void Call this method to 'unlock' the text area. After this call screen update can occur. But no automatical refresh occurs you have to commit the updates in the queue.
GetRangeDescription ( int selectedItem, int itemCount ) : string
IsEditAction ( Keys keyData ) : bool
LoadFile ( string fileName ) : void
LoadFile ( string fileName, Stream stream, bool autoLoadHighlighting, bool autodetectEncoding ) : void Loads a file from the specified stream.
LoadFile ( string fileName, bool autoLoadHighlighting, bool autodetectEncoding ) : void Loads a file given by fileName
OptionsChanged ( ) : void
Refresh ( ) : void Overwritten refresh method that does nothing if the control is in an update cycle.
SaveFile ( Stream stream ) : void Saves the text editor content into the specified stream. Does not close the stream.
SaveFile ( string fileName ) : void Saves the text editor content into the file.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
OnFileNameChanged ( EventArgs e ) : void
OnReloadHighlighting ( object sender, EventArgs e ) : void
TextEditorControlBase ( ) : System

Private Methods

Méthode Description
GenerateDefaultActions ( ) : void
GetEditAction ( Keys keyData ) : IEditAction
OnDocumentChanged ( object sender, EventArgs e ) : void
ParseFont ( string font ) : Font

Method Details

BeginUpdate() public méthode

Call this method before a long update operation this 'locks' the text area so that no screen update occurs.
public BeginUpdate ( ) : void
Résultat void

CanSaveWithCurrentEncoding() public méthode

Gets if the document can be saved with the current encoding without losing data.
public CanSaveWithCurrentEncoding ( ) : bool
Résultat bool

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndUpdate() public méthode

Call this method to 'unlock' the text area. After this call screen update can occur. But no automatical refresh occurs you have to commit the updates in the queue.
public EndUpdate ( ) : void
Résultat void

GetRangeDescription() public méthode

public GetRangeDescription ( int selectedItem, int itemCount ) : string
selectedItem int
itemCount int
Résultat string

IsEditAction() public méthode

public IsEditAction ( Keys keyData ) : bool
keyData Keys
Résultat bool

LoadFile() public méthode

public LoadFile ( string fileName ) : void
fileName string
Résultat void

LoadFile() public méthode

Loads a file from the specified stream.
public LoadFile ( string fileName, Stream stream, bool autoLoadHighlighting, bool autodetectEncoding ) : void
fileName string The name of the file to open. Used to find the correct highlighting strategy /// if autoLoadHighlighting is active, and sets the filename property to this value.
stream Stream The stream to actually load the file content from.
autoLoadHighlighting bool Automatically load the highlighting for the file
autodetectEncoding bool Automatically detect file encoding and set Encoding property to the detected encoding.
Résultat void

LoadFile() public méthode

Loads a file given by fileName
public LoadFile ( string fileName, bool autoLoadHighlighting, bool autodetectEncoding ) : void
fileName string The name of the file to open
autoLoadHighlighting bool Automatically load the highlighting for the file
autodetectEncoding bool Automatically detect file encoding and set Encoding property to the detected encoding.
Résultat void

OnFileNameChanged() protected méthode

protected OnFileNameChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnReloadHighlighting() protected méthode

protected OnReloadHighlighting ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

OptionsChanged() public abstract méthode

public abstract OptionsChanged ( ) : void
Résultat void

Refresh() public méthode

Overwritten refresh method that does nothing if the control is in an update cycle.
public Refresh ( ) : void
Résultat void

SaveFile() public méthode

Saves the text editor content into the specified stream. Does not close the stream.
public SaveFile ( Stream stream ) : void
stream Stream
Résultat void

SaveFile() public méthode

Saves the text editor content into the file.
public SaveFile ( string fileName ) : void
fileName string
Résultat void

TextEditorControlBase() protected méthode

protected TextEditorControlBase ( ) : System
Résultat System

Property Details

editactions protected_oe property

This hashtable contains all editor keys, where the key is the key combination and the value the action.
protected Dictionary editactions
Résultat IEditAction>.Dictionary