About Progress

  • Company
    • Company Overview
    • Leadership
    • Corporate Social Responsibility
    • Investor Relations
    • Press Releases
    • Press Coverage
    • Recognitions
    • Progress Labs
    • Events
    • Customers
    • Careers
    • Offices
  • Technology
    • Cloud Native App Dev Platform
    • Cognitive Services
    • Web Content Management
    • UI/UX Tools
    • Secure Data Connectivity and Integration
    • Secure Managed File Transfer
    • OpenEdge
    • Network Monitoring
  • Services
    • Consulting
    • Education
    • Modernization
    • Outsourcing
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • Conversational UI
    • Online Training
    • Document Processing Library
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for Xamarin NativeScript OSS framework
    Desktop
    UI for WPF UI for UWP UI for WinForms
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    Debugging
    FiddlerCore
    CMS
    Sitefinity
    UX Design
    Unite UX
    Document Management
    Telerik Document Processing
    Innovations Lab
    VR DataViz
    Free Tools
    Fiddler JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Edit Profile
    • Payment Profiles
    • Renewals & Upgrades
    • Support Tickets
    • Log out
  • Login
  • Contact Us
  • Try now

Class TextBoxNavigator

Represent a navigator in RadTextBoxControlElement

Inheritance
System.Object
TextBoxNavigator
AutoCompleteTextNavigator
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()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

public class TextBoxNavigator : ITextBoxNavigator, IDisposable

Constructors

TextBoxNavigator(RadTextBoxControlElement)

Initializes a new instance of the TextBoxNavigator class.

Declaration
public TextBoxNavigator(RadTextBoxControlElement textBoxElement)
Parameters
RadTextBoxControlElement textBoxElement

The text box element.

Properties

CaretPosition

Gets or sets the caret position.

Declaration
public TextPosition CaretPosition { get; set; }
Property Value
TextPosition

The caret position.

Implements
ITextBoxNavigator.CaretPosition

SelectionEnd

Gets or sets the selection end.

Declaration
public TextPosition SelectionEnd { get; set; }
Property Value
TextPosition

The selection end.

Implements
ITextBoxNavigator.SelectionEnd

SelectionLength

Gets the length of the selection.

Declaration
public int SelectionLength { get; }
Property Value
System.Int32

The length of the selection.

Implements
ITextBoxNavigator.SelectionLength

SelectionStart

Gets or sets the selection start.

Declaration
public TextPosition SelectionStart { get; set; }
Property Value
TextPosition

The selection start.

Implements
ITextBoxNavigator.SelectionStart

TextBoxElement

Gets the associated text box element.

Declaration
protected RadTextBoxControlElement TextBoxElement { get; }
Property Value
RadTextBoxControlElement

Methods

Dispose()

Declaration
public void Dispose()
Implements
System.IDisposable.Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.Boolean disposing

Finalize()

Declaration
protected void Finalize()

GetNextPosition(TextPosition)

Gets the next position.

Declaration
public virtual TextPosition GetNextPosition(TextPosition position)
Parameters
TextPosition position

The position.

Returns
TextPosition

Implements
ITextBoxNavigator.GetNextPosition(TextPosition)

GetNextPositionCore(TextPosition)

Gets the next position recursively.

Declaration
protected virtual TextPosition GetNextPositionCore(TextPosition position)
Parameters
TextPosition position

The position.

Returns
TextPosition

GetPositionFromOffset(Int32)

Gets the position from offset.

Declaration
public virtual TextPosition GetPositionFromOffset(int offset)
Parameters
System.Int32 offset

The offset.

Returns
TextPosition

Implements
ITextBoxNavigator.GetPositionFromOffset(Int32)

GetPositionFromPoint(PointF)

Gets the position from point.

Declaration
public virtual TextPosition GetPositionFromPoint(PointF point)
Parameters
System.Drawing.PointF point

The point.

Returns
TextPosition

Implements
ITextBoxNavigator.GetPositionFromPoint(PointF)

GetPreviousPosition(TextPosition)

Gets the previous position.

Declaration
public virtual TextPosition GetPreviousPosition(TextPosition position)
Parameters
TextPosition position

The position.

Returns
TextPosition

Implements
ITextBoxNavigator.GetPreviousPosition(TextPosition)

GetPreviousPositionCore(TextPosition)

Gets the previous position resursively.

Declaration
protected virtual TextPosition GetPreviousPositionCore(TextPosition position)
Parameters
TextPosition position

The position.

Returns
TextPosition

GetTextPositionFromLine(LineInfo, Single)

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
TextPosition

Navigate(KeyEventArgs)

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
System.Boolean

Implements
ITextBoxNavigator.Navigate(KeyEventArgs)

NavigateAtLine(KeyEventArgs, TextPosition)

Navigates at line.

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
TextPosition

NavigateToLine(KeyEventArgs, TextPosition)

Navigates to line.

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
TextPosition

OnSelectionChanged(SelectionChangedEventArgs)

Raises the SelectionChanged event.

Declaration
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
SelectionChangedEventArgs e

The SelectionChangedEventArgs instance containing the event data.

OnSelectionChanging(SelectionChangingEventArgs)

Raises the SelectionChanging event.

Declaration
protected virtual void OnSelectionChanging(SelectionChangingEventArgs e)
Parameters
SelectionChangingEventArgs e

The SelectionChangingEventArgs instance containing the event data.

RestoreSelection()

Restores the saved selection position.

Declaration
public virtual void RestoreSelection()
Implements
ITextBoxNavigator.RestoreSelection()

ResumeNotifications()

Resumes the notifications.

Declaration
public void ResumeNotifications()
Implements
ITextBoxNavigator.ResumeNotifications()

SaveSelection()

Saves the current selection position.

Declaration
public virtual void SaveSelection()
Implements
ITextBoxNavigator.SaveSelection()

ScrollToCaret()

Scrolls to caret position.

Declaration
public virtual bool ScrollToCaret()
Returns
System.Boolean

Implements
ITextBoxNavigator.ScrollToCaret()

Select(TextPosition, TextPosition)

Selects the specified range.

Declaration
public virtual bool Select(TextPosition start, TextPosition end)
Parameters
TextPosition start

The start.

TextPosition end

The end.

Returns
System.Boolean

Implements
ITextBoxNavigator.Select(TextPosition, TextPosition)

SelectOverride(Boolean)

Selects the override.

Declaration
protected virtual void SelectOverride(bool notify)
Parameters
System.Boolean 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
ITextBoxNavigator.SuspendNotifications()

Events

SelectionChanged

Occurs when selection is changed.

Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Type
SelectionChangedEventHandler

Implements
ITextBoxNavigator.SelectionChanged

SelectionChanging

Occurs when selection is changing.

Declaration
public event SelectionChangingEventHandler SelectionChanging
Event Type
SelectionChangingEventHandler

Implements
ITextBoxNavigator.SelectionChanging

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

 / 
Tell us how we can improve this article
Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.