C# 클래스 ICSharpCode.TextEditor.TextEditorControlBase

상속: System.Windows.Forms.UserControl
파일 보기 프로젝트 열기: Clancey/MonoMac.Windows.Form 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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