TextBoxNavigator
Represent a navigator in RadTextBoxControlElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TextBoxNavigator : ITextBoxNavigator, IDisposable
Inheritance: objectTextBoxNavigator
Derived Classes:
Implements:
Constructors
Initializes a new instance of the TextBoxNavigator class.
public TextBoxNavigator(RadTextBoxControlElement textBoxElement)
The text box element.
Properties
Gets or sets the caret position.
public TextPosition CaretPosition { get; set; }
The caret position.
Implements:
Gets or sets the selection end.
public TextPosition SelectionEnd { get; set; }
The selection end.
Implements:
Gets the length of the selection.
public int SelectionLength { get; }
The length of the selection.
Implements:
Gets or sets the selection start.
public TextPosition SelectionStart { get; set; }
The selection start.
Implements:
Gets the associated text box element.
protected RadTextBoxControlElement TextBoxElement { get; }
Methods
protected ~TextBoxNavigator()
public void Dispose()
Implements:
Gets the next position.
public virtual TextPosition GetNextPosition(TextPosition position, bool isControlPressed)
The position.
isControlPressedboolTrue if Control modifier key is pressed.
Returns:Implements:
Gets the next position.
public virtual TextPosition GetNextPosition(TextPosition position)
The position.
Returns:Implements:
Gets the next position recursively.
protected virtual TextPosition GetNextPositionCore(TextPosition position)
The position.
Returns:Gets the position from offset.
public virtual TextPosition GetPositionFromOffset(int offset)
The offset.
Returns:Implements:
Gets the position from point.
public virtual TextPosition GetPositionFromPoint(PointF point)
The point.
Returns:Implements:
Gets the previous position.
public virtual TextPosition GetPreviousPosition(TextPosition position, bool isControlPressed)
The position.
isControlPressedboolTrue if Control modifier key is pressed.
Returns:Implements:
Gets the previous position.
public virtual TextPosition GetPreviousPosition(TextPosition position)
The position.
Returns:Implements:
Gets the previous position resursively.
protected virtual TextPosition GetPreviousPositionCore(TextPosition position)
The position.
Returns:Navigates by specified keys.
public virtual bool Navigate(KeyEventArgs keys)
The KeyEventArgs instance containing the event data.
Returns:Implements:
Navigates at line.
protected virtual TextPosition NavigateAtLine(KeyEventArgs keys, TextPosition position)
The KeyEventArgs instance containing the event data.
positionTextPositionThe position.
Returns:Navigates to line.
protected virtual TextPosition NavigateToLine(KeyEventArgs keys, TextPosition position)
The KeyEventArgs instance containing the event data.
positionTextPositionThe position.
Returns:Raises the event.
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
The SelectionChangedEventArgs instance containing the event data.
Raises the event.
protected virtual void OnSelectionChanging(SelectionChangingEventArgs e)
The SelectionChangingEventArgs instance containing the event data.
Restores the saved selection position.
public virtual void RestoreSelection()
Implements:
Resumes the notifications.
public void ResumeNotifications()
Implements:
Saves the current selection position.
public virtual void SaveSelection()
Implements:
Scrolls to caret position.
Selects the specified range.
public virtual bool Select(TextPosition start, TextPosition end)
The start.
endTextPositionThe end.
Returns:Implements:
Selects the override.
Sets the caret position.
public virtual void SetCaretPosition()
Suspends the notifications.
public void SuspendNotifications()
Implements:
Events
Occurs when selection is changed.
public event SelectionChangedEventHandler SelectionChanged
Implements:
Occurs when selection is changing.
public event SelectionChangingEventHandler SelectionChanging
Implements: