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

Enables a user to quickly access items in a set by typing prefixes of strings.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public static class TextSearch

Inheritance: objectTextSearch

Fields

TextPathProperty

DependencyProperty

Identifies the TextPath attached property.

C#
public static readonly DependencyProperty TextPathProperty

TextProperty

DependencyProperty

Identifies the Text attached property.

C#
public static readonly DependencyProperty TextProperty

Properties

Gets or sets the timeout after that the autocomplete buffer is reset.

C#
public static TimeSpan AutoCompleteTimeout { get; set; }

Methods

Creates a Function that compares the provided text with its parameter. The result depends on the TextSearchMode.

C#
public static Func<string, bool> CreateFullMatchFunc(string text, TextSearchMode mode)
Parameters:textstringmodeTextSearchModeReturns:

Func<string, bool>

Creates a Function that compares the provided text with its parameter. The result depends on the TextSearchMode.

C#
public static Func<string, bool> CreatePartialMatchFunc(string text, TextSearchMode mode, bool isTextSearchCaseSensitive)
Parameters:textstringmodeTextSearchModeisTextSearchCaseSensitiveboolReturns:

Func<string, bool>

Returns the string to that identifies the specified item.

C#
public static string GetText(DependencyObject element)
Parameters:elementDependencyObject

The element from which the property value is read.

Returns:

string

The string that identifies the specified item.

Returns the name of the property that identifies an item in the specified element's collection.

C#
public static string GetTextPath(DependencyObject element)
Parameters:elementDependencyObject

The element from which the property value is read.

Returns:

string

The name of the property that identifies the item to the user.

Writes the Text attached property to the specified element.

C#
public static void SetText(DependencyObject element, string value)
Parameters:elementDependencyObject

The element to which the property value is written.

valuestring

The string that identifies the item.

Writes the TextPath attached property to the specified element.

C#
public static void SetTextPath(DependencyObject element, string value)
Parameters:elementDependencyObject

The element to which the property value is written.

valuestring

The name of the property that identifies an item.