Interface
ITextSource

The base class for text sources used in autocomplete behaviors.

Definition

Namespace:Telerik.Windows.Controls.Primitives

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public interface ITextSource

Properties

SelectionLength

Gets or sets the length of the selection.

Declaration

cs-api-definition
int SelectionLength { get; set; }

Property Value

int

SelectionStart

Gets or sets the selection start.

Declaration

cs-api-definition
int SelectionStart { get; set; }

Property Value

int

Text

Gets or sets the text.

Declaration

cs-api-definition
string Text { get; set; }

Property Value

string

Methods

Clear()

Clears the current text.

Declaration

cs-api-definition
void Clear()

Events

PreviewTextChanged

Occurs when preview text is changed.

Declaration

cs-api-definition
event EventHandler<CancelEventArgs> PreviewTextChanged

Event Value

EventHandler<CancelEventArgs>

PreviewTextChangedByUserInteraction

Occurs when preview text is changed by user interaction.

Declaration

cs-api-definition
event EventHandler<CancelEventArgs> PreviewTextChangedByUserInteraction

Event Value

EventHandler<CancelEventArgs>

SelectionChanged

Occurs when selection is changed.

Declaration

cs-api-definition
event EventHandler SelectionChanged

Event Value

EventHandler

TextChanged

Occurs when text is changed.

Declaration

cs-api-definition
event EventHandler TextChanged

Event Value

EventHandler

TextChangedByUserInteraction

Occurs when text is changed by user interaction.

Declaration

cs-api-definition
event EventHandler<TextChangedByUserInteractionEventArgs> TextChangedByUserInteraction

Event Value

EventHandler<TextChangedByUserInteractionEventArgs>