New to Telerik UI for WPFStart a free 30-day trial

ITextSource

Interface

The base class for text sources used in autocomplete behaviors.

Definition

Namespace:Telerik.Windows.Controls.Primitives

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public interface ITextSource

Properties

Gets or sets the length of the selection.

C#
int SelectionLength { get; set; }

Gets or sets the selection start.

C#
int SelectionStart { get; set; }

Gets or sets the text.

C#
string Text { get; set; }

Methods

Clears the current text.

C#
void Clear()

Events

Occurs when preview text is changed.

C#
event EventHandler<CancelEventArgs> PreviewTextChanged

Occurs when preview text is changed by user interaction.

C#
event EventHandler<CancelEventArgs> PreviewTextChangedByUserInteraction

Occurs when selection is changed.

C#
event EventHandler SelectionChanged

Occurs when text is changed.

C#
event EventHandler TextChanged

Occurs when text is changed by user interaction.

C#
event EventHandler<TextChangedByUserInteractionEventArgs> TextChangedByUserInteraction