InterfaceITextBoxNavigator
Represent a navigator in RadTextBoxControlElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public interface ITextBoxNavigator
Properties
CaretPosition
Gets or sets the caret position.
Declaration
TextPosition CaretPosition { get; set; }
Property Value
The caret position.
SelectionEnd
Gets or sets the selection end.
Declaration
TextPosition SelectionEnd { get; set; }
Property Value
The selection end.
SelectionLength
Gets the length of the selection.
Declaration
int SelectionLength { get; }
Property Value
The length of the selection.
SelectionStart
Gets or sets the selection start.
Declaration
TextPosition SelectionStart { get; set; }
Property Value
The selection start.
Methods
GetNextPosition(TextPosition)
Gets the next position.
Declaration
TextPosition GetNextPosition(TextPosition position)
Parameters
position
The position.
Returns
GetNextPosition(TextPosition, bool)
Gets the next position.
Declaration
TextPosition GetNextPosition(TextPosition position, bool isControlPressed)
Parameters
position
The position.
isControlPressed
True if Control modifier key is pressed.
Returns
GetPositionFromOffset(int)
Gets the position from offset.
Declaration
TextPosition GetPositionFromOffset(int offset)
Parameters
offset
The offset.
Returns
GetPositionFromPoint(PointF)
Gets the position from point.
Declaration
TextPosition GetPositionFromPoint(PointF point)
Parameters
point
The point.
Returns
GetPreviousPosition(TextPosition)
Gets the previous position.
Declaration
TextPosition GetPreviousPosition(TextPosition position)
Parameters
position
The position.
Returns
GetPreviousPosition(TextPosition, bool)
Gets the previous position.
Declaration
TextPosition GetPreviousPosition(TextPosition position, bool isControlPressed)
Parameters
position
The position.
isControlPressed
True if Control modifier key is pressed.
Returns
Navigate(KeyEventArgs)
Navigates by specified keys.
Declaration
bool Navigate(KeyEventArgs keys)
Parameters
keys
The KeyEventArgs instance containing the event data.
Returns
RestoreSelection()
Restores the saved selection position.
Declaration
void RestoreSelection()
ResumeNotifications()
Resumes the notifications.
Declaration
void ResumeNotifications()
SaveSelection()
Saves the current selection position.
Declaration
void SaveSelection()
ScrollToCaret()
Scrolls to caret position.
Select(TextPosition, TextPosition)
Selects the specified range.
Declaration
bool Select(TextPosition start, TextPosition end)
Parameters
start
The start.
end
The end.
Returns
SuspendNotifications()
Suspends the notifications.
Declaration
void SuspendNotifications()
Events
SelectionChanged
Occurs when selection is changed.
Declaration
event SelectionChangedEventHandler SelectionChanged
Event Value
SelectionChanging
Occurs when selection is changing.
Declaration
event SelectionChangingEventHandler SelectionChanging
Event Value