Class TextBoxNavigator
Inheritance
System.Object
TextBoxNavigator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Telerik.WinControls.UI.dll
Syntax
public class TextBoxNavigator : ITextBoxNavigator, IDisposable
Constructors
Declaration
public TextBoxNavigator(RadTextBoxControlElement textBoxElement)
Parameters
Properties
Gets or sets the caret position.
Declaration
public TextPosition CaretPosition { get; set; }
Property Value
Implements
Gets or sets the selection end.
Declaration
public TextPosition SelectionEnd { get; set; }
Property Value
Implements
Gets the length of the selection.
Declaration
public int SelectionLength { get; }
Property Value
System.Int32
The length of the selection.
|
Implements
Gets or sets the selection start.
Declaration
public TextPosition SelectionStart { get; set; }
Property Value
Implements
Gets the associated text box element.
Declaration
protected RadTextBoxControlElement TextBoxElement { get; }
Property Value
Methods
Declaration
Implements
System.IDisposable.Dispose()
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Declaration
protected void Finalize()
Declaration
public virtual TextPosition GetNextPosition(TextPosition position)
Parameters
Returns
Implements
Declaration
public virtual TextPosition GetNextPosition(TextPosition position, bool isControlPressed)
Parameters
TextPosition
position
The position.
|
System.Boolean
isControlPressed
True if Control modifier key is pressed.
|
Returns
Implements
Gets the next position recursively.
Declaration
protected virtual TextPosition GetNextPositionCore(TextPosition position)
Parameters
Returns
Gets the position from offset.
Declaration
public virtual TextPosition GetPositionFromOffset(int offset)
Parameters
System.Int32
offset
The offset.
|
Returns
Implements
Gets the position from point.
Declaration
public virtual TextPosition GetPositionFromPoint(PointF point)
Parameters
System.Drawing.PointF
point
The point.
|
Returns
Implements
Gets the previous position.
Declaration
public virtual TextPosition GetPreviousPosition(TextPosition position)
Parameters
Returns
Implements
Gets the previous position.
Declaration
public virtual TextPosition GetPreviousPosition(TextPosition position, bool isControlPressed)
Parameters
TextPosition
position
The position.
|
System.Boolean
isControlPressed
True if Control modifier key is pressed.
|
Returns
Implements
Gets the previous position resursively.
Declaration
protected virtual TextPosition GetPreviousPositionCore(TextPosition position)
Parameters
Returns
Gets the text position from line.
Declaration
protected virtual TextPosition GetTextPositionFromLine(LineInfo line, float x)
Parameters
LineInfo
line
The line.
|
System.Single
x
The x.
|
Returns
Navigates by specified keys.
Declaration
public virtual bool Navigate(KeyEventArgs keys)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The System.Windows.Forms.KeyEventArgs instance containing the event data.
|
Returns
Implements
Declaration
protected virtual TextPosition NavigateAtLine(KeyEventArgs keys, TextPosition position)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The System.Windows.Forms.KeyEventArgs instance containing the event data.
|
TextPosition
position
The position.
|
Returns
Declaration
protected virtual TextPosition NavigateToLine(KeyEventArgs keys, TextPosition position)
Parameters
System.Windows.Forms.KeyEventArgs
keys
The System.Windows.Forms.KeyEventArgs instance containing the event data.
|
TextPosition
position
The position.
|
Returns
Raises the SelectionChanged event.
Declaration
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
Raises the SelectionChanging event.
Declaration
protected virtual void OnSelectionChanging(SelectionChangingEventArgs e)
Parameters
Restores the saved selection position.
Declaration
public virtual void RestoreSelection()
Implements
Resumes the notifications.
Declaration
public void ResumeNotifications()
Implements
Saves the current selection position.
Declaration
public virtual void SaveSelection()
Implements
Scrolls to caret position.
Declaration
public virtual bool ScrollToCaret()
Returns
Implements
Selects the specified range.
Declaration
public virtual bool Select(TextPosition start, TextPosition end)
Parameters
Returns
Implements
Declaration
protected virtual void SelectOverride(bool notify)
Parameters
System.Boolean
notify
if set to true [notify].
|
Declaration
public virtual void SetCaretPosition()
Suspends the notifications.
Declaration
public void SuspendNotifications()
Implements
Events
Occurs when selection is changed.
Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Type
Implements
Occurs when selection is changing.
Declaration
public event SelectionChangingEventHandler SelectionChanging
Event Type
Implements
Extension Methods