C# Класс ICSharpCode.AvalonEdit.Editing.Caret

Helper class with caret-related methods.
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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

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

Scrolls the text view so that the caret is visible.
public BringCaretToView ( ) : void
Результат void

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

Makes the caret invisible.
public Hide ( ) : void
Результат void

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

Makes the caret visible and updates its on-screen position.
public Show ( ) : void
Результат void