New to Telerik UI for WinFormsStart a free 30-day trial

Represent a navigator in RadTextBoxControlElement

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public interface ITextBoxNavigator

Derived Classes: AutoCompleteTextNavigatorTextBoxNavigator

Properties

Gets or sets the caret position.

C#
TextPosition CaretPosition { get; set; }
Property Value:

The caret position.

Gets or sets the selection end.

C#
TextPosition SelectionEnd { get; set; }
Property Value:

The selection end.

Gets the length of the selection.

C#
int SelectionLength { get; }
Property Value:

The length of the selection.

Gets or sets the selection start.

C#
TextPosition SelectionStart { get; set; }
Property Value:

The selection start.

Methods

Gets the next position.

C#
TextPosition GetNextPosition(TextPosition position, bool isControlPressed)
Parameters:positionTextPosition

The position.

isControlPressedbool

True if Control modifier key is pressed.

Returns:

TextPosition

Gets the next position.

C#
TextPosition GetNextPosition(TextPosition position)
Parameters:positionTextPosition

The position.

Returns:

TextPosition

Gets the position from offset.

C#
TextPosition GetPositionFromOffset(int offset)
Parameters:offsetint

The offset.

Returns:

TextPosition

Gets the position from point.

C#
TextPosition GetPositionFromPoint(PointF point)
Parameters:pointPointF

The point.

Returns:

TextPosition

Gets the previous position.

C#
TextPosition GetPreviousPosition(TextPosition position, bool isControlPressed)
Parameters:positionTextPosition

The position.

isControlPressedbool

True if Control modifier key is pressed.

Returns:

TextPosition

Gets the previous position.

C#
TextPosition GetPreviousPosition(TextPosition position)
Parameters:positionTextPosition

The position.

Returns:

TextPosition

Navigates by specified keys.

C#
bool Navigate(KeyEventArgs keys)
Parameters:keysKeyEventArgs

The KeyEventArgs instance containing the event data.

Returns:

bool

Restores the saved selection position.

C#
void RestoreSelection()

Resumes the notifications.

C#
void ResumeNotifications()

Saves the current selection position.

C#
void SaveSelection()

Scrolls to caret position.

C#
bool ScrollToCaret()
Returns:

bool

Selects the specified range.

C#
bool Select(TextPosition start, TextPosition end)
Parameters:startTextPosition

The start.

endTextPosition

The end.

Returns:

bool

Suspends the notifications.

C#
void SuspendNotifications()

Events

Occurs when selection is changed.

C#
event SelectionChangedEventHandler SelectionChanged

Occurs when selection is changing.

C#
event SelectionChangingEventHandler SelectionChanging