ClassTextBoxNavigator
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
TextBoxNavigator(RadTextBoxControlElement)
Initializes a new instance of the TextBoxNavigator class.
Declaration
public TextBoxNavigator(RadTextBoxControlElement textBoxElement)
Parameters
textBoxElement
The text box element.
Properties
CaretPosition
Gets or sets the caret position.
Declaration
public TextPosition CaretPosition { get; set; }
Property Value
The caret position.
Implements
SelectionEnd
Gets or sets the selection end.
Declaration
public TextPosition SelectionEnd { get; set; }
Property Value
The selection end.
Implements
SelectionLength
Gets the length of the selection.
Declaration
public int SelectionLength { get; }
Property Value
The length of the selection.
Implements
SelectionStart
Gets or sets the selection start.
Declaration
public TextPosition SelectionStart { get; set; }
Property Value
The selection start.
Implements
TextBoxElement
Gets the associated text box element.
Declaration
protected RadTextBoxControlElement TextBoxElement { get; }
Property Value
Methods
Dispose()
Declaration
public void Dispose()
Implements
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
disposing
GetNextPosition(TextPosition)
Gets the next position.
Declaration
public virtual TextPosition GetNextPosition(TextPosition position)
Parameters
position
The position.
Returns
Implements
GetNextPosition(TextPosition, bool)
Gets the next position.
Declaration
public virtual TextPosition GetNextPosition(TextPosition position, bool isControlPressed)
Parameters
position
The position.
isControlPressed
True if Control modifier key is pressed.
Returns
Implements
GetNextPositionCore(TextPosition)
Gets the next position recursively.
Declaration
protected virtual TextPosition GetNextPositionCore(TextPosition position)
Parameters
position
The position.
Returns
GetPositionFromOffset(int)
Gets the position from offset.
Declaration
public virtual TextPosition GetPositionFromOffset(int offset)
Parameters
offset
The offset.
Returns
Implements
GetPositionFromPoint(PointF)
Gets the position from point.
Declaration
public virtual TextPosition GetPositionFromPoint(PointF point)
Parameters
point
The point.
Returns
Implements
GetPreviousPosition(TextPosition)
Gets the previous position.
Declaration
public virtual TextPosition GetPreviousPosition(TextPosition position)
Parameters
position
The position.
Returns
Implements
GetPreviousPosition(TextPosition, bool)
Gets the previous position.
Declaration
public virtual TextPosition GetPreviousPosition(TextPosition position, bool isControlPressed)
Parameters
position
The position.
isControlPressed
True if Control modifier key is pressed.
Returns
Implements
GetPreviousPositionCore(TextPosition)
Gets the previous position resursively.
Declaration
protected virtual TextPosition GetPreviousPositionCore(TextPosition position)
Parameters
position
The position.
Returns
GetTextPositionFromLine(LineInfo, float)
Gets the text position from line.
Declaration
protected virtual TextPosition GetTextPositionFromLine(LineInfo line, float x)
Parameters
line
The line.
x
The x.
Returns
Navigate(KeyEventArgs)
Navigates by specified keys.
Declaration
public virtual bool Navigate(KeyEventArgs keys)
Parameters
keys
The KeyEventArgs instance containing the event data.
Returns
Implements
NavigateAtLine(KeyEventArgs, TextPosition)
Navigates at line.
Declaration
protected virtual TextPosition NavigateAtLine(KeyEventArgs keys, TextPosition position)
Parameters
keys
The KeyEventArgs instance containing the event data.
position
The position.
Returns
NavigateToLine(KeyEventArgs, TextPosition)
Navigates to line.
Declaration
protected virtual TextPosition NavigateToLine(KeyEventArgs keys, TextPosition position)
Parameters
keys
The KeyEventArgs instance containing the event data.
position
The position.
Returns
OnSelectionChanged(SelectionChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
e
The SelectionChangedEventArgs instance containing the event data.
OnSelectionChanging(SelectionChangingEventArgs)
Raises the event.
Declaration
protected virtual void OnSelectionChanging(SelectionChangingEventArgs e)
Parameters
e
The SelectionChangingEventArgs instance containing the event data.
RestoreSelection()
Restores the saved selection position.
Declaration
public virtual void RestoreSelection()
Implements
ResumeNotifications()
Resumes the notifications.
Declaration
public void ResumeNotifications()
Implements
SaveSelection()
Saves the current selection position.
Declaration
public virtual void SaveSelection()
Implements
ScrollToCaret()
Scrolls to caret position.
Select(TextPosition, TextPosition)
Selects the specified range.
Declaration
public virtual bool Select(TextPosition start, TextPosition end)
Parameters
start
The start.
end
The end.
Returns
Implements
SelectOverride(bool)
Selects the override.
Declaration
protected virtual void SelectOverride(bool notify)
Parameters
notify
if set to true [notify].
SetCaretPosition()
Sets the caret position.
Declaration
public virtual void SetCaretPosition()
SuspendNotifications()
Suspends the notifications.
Declaration
public void SuspendNotifications()
Implements
~TextBoxNavigator()
Declaration
protected ~TextBoxNavigator()
Events
SelectionChanged
Occurs when selection is changed.
Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Value
Implements
SelectionChanging
Occurs when selection is changing.
Declaration
public event SelectionChangingEventHandler SelectionChanging
Event Value
Implements