Interface
ITextBoxNavigator

Represent a navigator in RadTextBoxControlElement

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public interface ITextBoxNavigator

Properties

CaretPosition

Gets or sets the caret position.

Declaration

cs-api-definition
TextPosition CaretPosition { get; set; }

Property Value

TextPosition

The caret position.

SelectionEnd

Gets or sets the selection end.

Declaration

cs-api-definition
TextPosition SelectionEnd { get; set; }

Property Value

TextPosition

The selection end.

SelectionLength

Gets the length of the selection.

Declaration

cs-api-definition
int SelectionLength { get; }

Property Value

int

The length of the selection.

SelectionStart

Gets or sets the selection start.

Declaration

cs-api-definition
TextPosition SelectionStart { get; set; }

Property Value

TextPosition

The selection start.

Methods

GetNextPosition(TextPosition)

Gets the next position.

Declaration

cs-api-definition
TextPosition GetNextPosition(TextPosition position)

Parameters

position

TextPosition

The position.

Returns

TextPosition

GetNextPosition(TextPosition, bool)

Gets the next position.

Declaration

cs-api-definition
TextPosition GetNextPosition(TextPosition position, bool isControlPressed)

Parameters

position

TextPosition

The position.

isControlPressed

bool

True if Control modifier key is pressed.

Returns

TextPosition

GetPositionFromOffset(int)

Gets the position from offset.

Declaration

cs-api-definition
TextPosition GetPositionFromOffset(int offset)

Parameters

offset

int

The offset.

Returns

TextPosition

GetPositionFromPoint(PointF)

Gets the position from point.

Declaration

cs-api-definition
TextPosition GetPositionFromPoint(PointF point)

Parameters

point

PointF

The point.

Returns

TextPosition

GetPreviousPosition(TextPosition)

Gets the previous position.

Declaration

cs-api-definition
TextPosition GetPreviousPosition(TextPosition position)

Parameters

position

TextPosition

The position.

Returns

TextPosition

GetPreviousPosition(TextPosition, bool)

Gets the previous position.

Declaration

cs-api-definition
TextPosition GetPreviousPosition(TextPosition position, bool isControlPressed)

Parameters

position

TextPosition

The position.

isControlPressed

bool

True if Control modifier key is pressed.

Returns

TextPosition

Navigate(KeyEventArgs)

Navigates by specified keys.

Declaration

cs-api-definition
bool Navigate(KeyEventArgs keys)

Parameters

keys

KeyEventArgs

The KeyEventArgs instance containing the event data.

Returns

bool

RestoreSelection()

Restores the saved selection position.

Declaration

cs-api-definition
void RestoreSelection()

ResumeNotifications()

Resumes the notifications.

Declaration

cs-api-definition
void ResumeNotifications()

SaveSelection()

Saves the current selection position.

Declaration

cs-api-definition
void SaveSelection()

ScrollToCaret()

Scrolls to caret position.

Declaration

cs-api-definition
bool ScrollToCaret()

Returns

bool

Select(TextPosition, TextPosition)

Selects the specified range.

Declaration

cs-api-definition
bool Select(TextPosition start, TextPosition end)

Parameters

start

TextPosition

The start.

end

TextPosition

The end.

Returns

bool

SuspendNotifications()

Suspends the notifications.

Declaration

cs-api-definition
void SuspendNotifications()

Events

SelectionChanged

Occurs when selection is changed.

Declaration

cs-api-definition
event SelectionChangedEventHandler SelectionChanged

Event Value

SelectionChangedEventHandler

SelectionChanging

Occurs when selection is changing.

Declaration

cs-api-definition
event SelectionChangingEventHandler SelectionChanging

Event Value

SelectionChangingEventHandler