New to Telerik UI for WinForms? Start a free 30-day trial

Represent a navigator in RadAutoCompleteBoxElement

Definition

Constructors

Initializes a new instance of the AutoCompleteTextNavigator class.

C#
public AutoCompleteTextNavigator(RadAutoCompleteBoxElement owner)
Parameters:ownerRadAutoCompleteBoxElement

The owner.

Methods

Gets the editable position.

C#
protected virtual TextPosition GetEditablePosition(TextPosition position, bool next)
Parameters:positionTextPosition

The position.

nextbool

if set to true [next].

Returns:

TextPosition

Gets the end boundary of the editable text segment containing or adjacent to the supplied position, stopping at a token or line break.

C#
public TextPosition GetNextEditablePosition(TextPosition position)
Parameters:positionTextPosition

The position from which to find editable text.

Returns:

TextPosition

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.

C#
public override TextPosition GetNextPosition(TextPosition position, bool isControlPressed)
Parameters:positionTextPosition

The current caret position.

isControlPressedbool

Whether the Control key is pressed; this navigator ignores the flag.

Returns:

TextPosition

The next position, clamped to a token boundary when necessary.

Overrides: TextBoxNavigator.GetNextPosition(TextPosition, bool)

Moves right without allowing the caret to remain inside a token block.

C#
public override TextPosition GetNextPosition(TextPosition position)
Parameters:positionTextPosition

The current caret position.

Returns:

TextPosition

The next position, adjusted to a token boundary when necessary.

Overrides: TextBoxNavigator.GetNextPosition(TextPosition)

Maps a text offset to a position and moves positions inside tokens to the nearer token edge.

C#
public override TextPosition GetPositionFromOffset(int offset)
Parameters:offsetint

The offset in the displayed text.

Returns:

TextPosition

The mapped position, clamped to a token boundary when necessary.

Overrides: TextBoxNavigator.GetPositionFromOffset(int)

Maps a point to a position and moves positions inside tokens to the nearer token edge.

C#
public override TextPosition GetPositionFromPoint(PointF point)
Parameters:pointPointF

The point used to locate text.

Returns:

TextPosition

The mapped position, clamped to a token boundary when necessary.

Overrides: TextBoxNavigator.GetPositionFromPoint(PointF)

Gets the start boundary of the editable text segment containing or adjacent to the supplied position, stopping at a token or line break.

C#
public TextPosition GetPreviousEditablePosition(TextPosition position)
Parameters:positionTextPosition

The position from which to find editable text.

Returns:

TextPosition

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.

C#
public override TextPosition GetPreviousPosition(TextPosition position, bool isControlPressed)
Parameters:positionTextPosition

The current caret position.

isControlPressedbool

Whether the Control key is pressed; this navigator ignores the flag.

Returns:

TextPosition

The previous position, clamped to a token boundary when necessary.

Overrides: TextBoxNavigator.GetPreviousPosition(TextPosition, bool)

Moves left without allowing the caret to remain inside a token block, including across carriage-return boundaries.

C#
public override TextPosition GetPreviousPosition(TextPosition position)
Parameters:positionTextPosition

The current caret position.

Returns:

TextPosition

The previous position, adjusted to a token boundary when necessary.

Overrides: TextBoxNavigator.GetPreviousPosition(TextPosition)