RichTextKit v0.4

TextDocument.Navigate Method

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Editor
Declaring Type: TextDocument

Handles keyboard navigation events

public Topten.RichTextKit.CaretPosition Navigate(Topten.RichTextKit.CaretPosition position, NavigationKind kind, float pageSize, ref Nullable<float> ghostXCoord);

Parameters

Topten.RichTextKit.CaretPosition position

The current caret position

NavigationKind kind

The direction and type of caret movement

float pageSize

Specifies the page size for page up/down navigation

ref Nullable<float> ghostXCoord

Transient storage for XCoord of caret during vertical navigation

Returns

Topten.RichTextKit.CaretPosition

The new caret position