Represent a navigator in RadAutoCompleteBoxElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class AutoCompleteTextNavigator : TextBoxNavigator, ITextBoxNavigator, IDisposable
Inheritance: objectTextBoxNavigatorAutoCompleteTextNavigator
Implements:
Inherited Members
Constructors
Initializes a new instance of the AutoCompleteTextNavigator class.
public AutoCompleteTextNavigator(RadAutoCompleteBoxElement owner)
The owner.
Methods
Gets the editable position.
protected virtual TextPosition GetEditablePosition(TextPosition position, bool next)
The position.
nextboolif set to true [next].
Gets the end boundary of the editable text segment containing or adjacent to the supplied position, stopping at a token or line break.
public TextPosition GetNextEditablePosition(TextPosition position)
The position from which to find editable text.
Returns:The segment end, null for a null position, or the supplied position when no editable block is found.
Moves to the next token-aware position; the control-key flag does not change navigation in this navigator.
public override TextPosition GetNextPosition(TextPosition position, bool isControlPressed)
The current caret position.
isControlPressedboolWhether the Control key is pressed; this navigator ignores the flag.
Returns:The next position, clamped to a token boundary when necessary.
Overrides:
Moves right without allowing the caret to remain inside a token block.
public override TextPosition GetNextPosition(TextPosition position)
The current caret position.
Returns:The next position, adjusted to a token boundary when necessary.
Overrides:
Maps a text offset to a position and moves positions inside tokens to the nearer token edge.
public override TextPosition GetPositionFromOffset(int offset)
The offset in the displayed text.
Returns:The mapped position, clamped to a token boundary when necessary.
Overrides:
Maps a point to a position and moves positions inside tokens to the nearer token edge.
public override TextPosition GetPositionFromPoint(PointF point)
The point used to locate text.
Returns:The mapped position, clamped to a token boundary when necessary.
Overrides:
Gets the start boundary of the editable text segment containing or adjacent to the supplied position, stopping at a token or line break.
public TextPosition GetPreviousEditablePosition(TextPosition position)
The position from which to find editable text.
Returns:The segment start, null for a null position, or the supplied position when no editable block is found.
Moves to the previous token-aware position; the control-key flag does not change navigation in this navigator.
public override TextPosition GetPreviousPosition(TextPosition position, bool isControlPressed)
The current caret position.
isControlPressedboolWhether the Control key is pressed; this navigator ignores the flag.
Returns:The previous position, clamped to a token boundary when necessary.
Overrides:
Moves left without allowing the caret to remain inside a token block, including across carriage-return boundaries.
public override TextPosition GetPreviousPosition(TextPosition position)
The current caret position.
Returns:The previous position, adjusted to a token boundary when necessary.
Overrides: