C# Класс ICSharpCode.TextEditor.TextEditorControlBase

Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
editactions IEditAction>.Dictionary

Private Properties

Свойство Тип Описание
GenerateDefaultActions void
GetEditAction IEditAction
OnDocumentChanged void
ParseFont System.Drawing.Font

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
OnFileNameChanged ( EventArgs e ) : void
OnReloadHighlighting ( object sender, EventArgs e ) : void
TextEditorControlBase ( ) : System

Приватные методы

Метод Описание
GenerateDefaultActions ( ) : void
GetEditAction ( Keys keyData ) : IEditAction
OnDocumentChanged ( object sender, EventArgs e ) : void
ParseFont ( string font ) : Font

Описание методов

BeginUpdate() публичный Метод

Call this method before a long update operation this 'locks' the text area so that no screen update occurs.
public BeginUpdate ( ) : void
Результат void

CanSaveWithCurrentEncoding() публичный Метод

Gets if the document can be saved with the current encoding without losing data.
public CanSaveWithCurrentEncoding ( ) : bool
Результат bool

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

EndUpdate() публичный Метод

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
Результат void

GetRangeDescription() публичный Метод

public GetRangeDescription ( int selectedItem, int itemCount ) : string
selectedItem int
itemCount int
Результат string

IsEditAction() публичный Метод

public IsEditAction ( Keys keyData ) : bool
keyData Keys
Результат bool

LoadFile() публичный Метод

public LoadFile ( string fileName ) : void
fileName string
Результат void

LoadFile() публичный Метод

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.
Результат void

LoadFile() публичный Метод

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.
Результат void

OnFileNameChanged() защищенный Метод

protected OnFileNameChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

OnReloadHighlighting() защищенный Метод

protected OnReloadHighlighting ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

OptionsChanged() публичный абстрактный Метод

public abstract OptionsChanged ( ) : void
Результат void

Refresh() публичный Метод

Overwritten refresh method that does nothing if the control is in an update cycle.
public Refresh ( ) : void
Результат void

SaveFile() публичный Метод

Saves the text editor content into the specified stream. Does not close the stream.
public SaveFile ( Stream stream ) : void
stream Stream
Результат void

SaveFile() публичный Метод

Saves the text editor content into the file.
public SaveFile ( string fileName ) : void
fileName string
Результат void

TextEditorControlBase() защищенный Метод

protected TextEditorControlBase ( ) : System
Результат System

Описание свойств

editactions защищенное свойство

This hashtable contains all editor keys, where the key is the key combination and the value the action.
protected Dictionary editactions
Результат IEditAction>.Dictionary