Class
TextSearch

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:

cs-api-definition
public static class TextSearch

Inheritance: objectTextSearch

Fields

TextPathProperty

Identifies the TextPath attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextPathProperty

Field Value

DependencyProperty

TextProperty

Identifies the Text attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextProperty

Field Value

DependencyProperty

Properties

AutoCompleteTimeout

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

Declaration

cs-api-definition
public static TimeSpan AutoCompleteTimeout { get; set; }

Property Value

TimeSpan

Methods

CreateFullMatchFunc(string, TextSearchMode)

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

Declaration

cs-api-definition
public static Func<string, bool> CreateFullMatchFunc(string text, TextSearchMode mode)

Parameters

text

string

mode

TextSearchMode

Returns

Func<string, bool>

CreatePartialMatchFunc(string, TextSearchMode, bool)

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

Declaration

cs-api-definition
public static Func<string, bool> CreatePartialMatchFunc(string text, TextSearchMode mode, bool isTextSearchCaseSensitive)

Parameters

text

string

mode

TextSearchMode

isTextSearchCaseSensitive

bool

Returns

Func<string, bool>

GetText(DependencyObject)

Returns the string to that identifies the specified item.

Declaration

cs-api-definition
public static string GetText(DependencyObject element)

Parameters

element

DependencyObject

The element from which the property value is read.

Returns

string

The string that identifies the specified item.

GetTextPath(DependencyObject)

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

Declaration

cs-api-definition
public static string GetTextPath(DependencyObject element)

Parameters

element

DependencyObject

The element from which the property value is read.

Returns

string

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

SetText(DependencyObject, string)

Writes the Text attached property to the specified element.

Declaration

cs-api-definition
public static void SetText(DependencyObject element, string value)

Parameters

element

DependencyObject

The element to which the property value is written.

value

string

The string that identifies the item.

SetTextPath(DependencyObject, string)

Writes the TextPath attached property to the specified element.

Declaration

cs-api-definition
public static void SetTextPath(DependencyObject element, string value)

Parameters

element

DependencyObject

The element to which the property value is written.

value

string

The name of the property that identifies an item.