C# Class ICSharpCode.TextEditor.Caret

Inheritance: System.IDisposable
显示文件 Open project: Clancey/MonoMac.Windows.Form Class Usage Examples

Public Methods

Method Description
Caret ( TextArea textArea ) : System
Dispose ( ) : void
RecreateCaret ( ) : void
UpdateCaretPosition ( ) : void
ValidateCaretPos ( ) : void If the caret position is outside the document text bounds it is set to the correct position by calling ValidateCaretPos.
ValidatePosition ( TextLocation pos ) : TextLocation

Protected Methods

Method Description
OnCaretModeChanged ( EventArgs e ) : void
OnPositionChanged ( EventArgs e ) : void

Private Methods

Method Description
CreateCaret ( ) : void
DisposeCaret ( ) : void
FirePositionChangedAfterUpdateEnd ( object sender, EventArgs e ) : void
GotFocus ( object sender, EventArgs e ) : void
Log ( string text ) : void
LostFocus ( object sender, EventArgs e ) : void
OnEndUpdate ( ) : void
PaintCaret ( Graphics g ) : void
PaintCaretLine ( Graphics g ) : void

Method Details

Caret() public method

public Caret ( TextArea textArea ) : System
textArea TextArea
return System

Dispose() public method

public Dispose ( ) : void
return void

OnCaretModeChanged() protected method

protected OnCaretModeChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnPositionChanged() protected method

protected OnPositionChanged ( EventArgs e ) : void
e System.EventArgs
return void

RecreateCaret() public method

public RecreateCaret ( ) : void
return void

UpdateCaretPosition() public method

public UpdateCaretPosition ( ) : void
return void

ValidateCaretPos() public method

If the caret position is outside the document text bounds it is set to the correct position by calling ValidateCaretPos.
public ValidateCaretPos ( ) : void
return void

ValidatePosition() public method

public ValidatePosition ( TextLocation pos ) : TextLocation
pos TextLocation
return TextLocation