Class TextSearch
Enables a user to quickly access items in a set by typing prefixes of strings.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public static class TextSearch : Object
Fields
TextPathProperty
Identifies the TextPath attached property.
Declaration
public static readonly DependencyProperty TextPathProperty
Field Value
System.Windows.DependencyProperty
|
TextProperty
Identifies the Text attached property.
Declaration
public static readonly DependencyProperty TextProperty
Field Value
System.Windows.DependencyProperty
|
Properties
AutoCompleteTimeout
Gets or sets the timeout after that the autocomplete buffer is reset.
Declaration
public static TimeSpan AutoCompleteTimeout { get; set; }
Property Value
System.TimeSpan
|
Methods
CreateFullMatchFunc(String, TextSearchMode)
Creates a Function that compares the provided text with its parameter. The result depends on the TextSearchMode.
Declaration
public static Func<string, bool> CreateFullMatchFunc(string text, TextSearchMode mode)
Parameters
System.String
text
|
TextSearchMode
mode
|
Returns
System.Func<System.String, System.Boolean>
|
CreatePartialMatchFunc(String, TextSearchMode, Boolean)
Creates a Function that compares the provided text with its parameter. The result depends on the TextSearchMode.
Declaration
public static Func<string, bool> CreatePartialMatchFunc(string text, TextSearchMode mode, bool isTextSearchCaseSensitive)
Parameters
System.String
text
|
TextSearchMode
mode
|
System.Boolean
isTextSearchCaseSensitive
|
Returns
System.Func<System.String, System.Boolean>
|
GetText(DependencyObject)
Returns the string to that identifies the specified item.
Declaration
public static string GetText(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
The element from which the property value is read. |
Returns
System.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
public static string GetTextPath(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
The element from which the property value is read. |
Returns
System.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
public static void SetText(DependencyObject element, string value)
Parameters
System.Windows.DependencyObject
element
The element to which the property value is written. |
System.String
value
The string that identifies the item. |
SetTextPath(DependencyObject, String)
Writes the TextPath attached property to the specified element.
Declaration
public static void SetTextPath(DependencyObject element, string value)
Parameters
System.Windows.DependencyObject
element
The element to which the property value is written. |
System.String
value
The name of the property that identifies an item. |