C# Class ICSharpCode.AvalonEdit.Editing.Caret

Helper class with caret-related methods.
Mostrar archivo Open project: kjk/kjkpub Class Usage Examples

Public Methods

Method Description
BringCaretToView ( ) : void

Scrolls the text view so that the caret is visible.

Hide ( ) : void

Makes the caret invisible.

Show ( ) : void

Makes the caret visible and updates its on-screen position.

Private Methods

Method Description
BringCaretToView ( double border ) : void
CalcCaretRectangle ( VisualLine visualLine ) : Rect
Caret ( TextArea textArea ) : System
InvalidateVisualColumn ( ) : void
Log ( string text ) : void
OnDocumentChanged ( ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs e ) : void
OnDocumentChanging ( ) : void
RevalidateVisualColumn ( VisualLine visualLine ) : void

Validates the visual column of the caret using the specified visual line. The visual line must contain the caret offset.

ShowInternal ( ) : void
TextView_ScrollOffsetChanged ( object sender, EventArgs e ) : void
TextView_VisualLinesChanged ( object sender, EventArgs e ) : void
ValidatePosition ( ) : void
ValidateVisualColumn ( ) : void

Method Details

BringCaretToView() public method

Scrolls the text view so that the caret is visible.
public BringCaretToView ( ) : void
return void

Hide() public method

Makes the caret invisible.
public Hide ( ) : void
return void

Show() public method

Makes the caret visible and updates its on-screen position.
public Show ( ) : void
return void