ClassRadTextBoxListElement
Represents a auto-complete list element in RadTextBoxControlElement.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTextBoxListElement : RadListElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementScrollViewElement<VirtualizedStackContainer<RadListDataItem>>VirtualizedScrollPanel<RadListDataItem, RadListVisualItem>RadListElementRadTextBoxListElement
Derived Classes:
Implements:
Inherited Members
Constructors
RadTextBoxListElement()
Declaration
public RadTextBoxListElement()
Properties
AutoCompleteMode
Gets or sets the auto complete mode.
Declaration
public AutoCompleteMode AutoCompleteMode { get; set; }
Property Value
The auto complete mode.
EndPosition
Gets or sets the end position where the suggestion is performed
Declaration
public TextPosition EndPosition { get; set; }
Property Value
IsAppendMode
Gets a value indicating whether the auto-complete mode is append mode.
Declaration
protected bool IsAppendMode { get; }
Property Value
true if the mode is append mode; otherwise, false.
IsSuggestMode
Gets a value indicating whether the auto-complete mode is suggest mode.
Declaration
protected bool IsSuggestMode { get; }
Property Value
true if the mode is suggest mode; otherwise, false.
IsSuggestionMatched
Gets a value indicating whether this text and suggested text are matched.
Declaration
public bool IsSuggestionMatched { get; }
Property Value
true if they are matched; otherwise, false.
PatternText
Gets the text search criteria.
StartPosition
Gets or sets the start position where the suggestion is performed
Declaration
public TextPosition StartPosition { get; set; }
Property Value
SuggestedText
Gets the suggested text.
ThemeEffectiveType
Declaration
protected override Type ThemeEffectiveType { get; }
Property Value
Overrides
Methods
AutoCompleteFilter(RadListDataItem)
Custom filtering predicated
Declaration
protected virtual bool AutoCompleteFilter(RadListDataItem item)
Parameters
item
The item.
Returns
AutoCompleteFilterOverride(RadListDataItem)
Custom filtering predicated.
Declaration
protected virtual bool AutoCompleteFilterOverride(RadListDataItem item)
Parameters
item
The item.
Returns
Find(string)
Finds RadListDataItem by text
Declaration
public virtual RadListDataItem Find(string text)
Parameters
text
The text.
Returns
GetFirstFullyVisibleItem()
Gets the first fully visible item.
Declaration
public RadListDataItem GetFirstFullyVisibleItem()
Returns
GetFullyVisibleItem(bool)
Gets the fully visible item.
Declaration
protected virtual RadListDataItem GetFullyVisibleItem(bool firstItem)
Parameters
firstItem
if set to true [first item].
Returns
GetLastFullyVisibleItem()
Gets the last fully visible item.
Declaration
public RadListDataItem GetLastFullyVisibleItem()
Returns
GetSuggestedText(RadListDataItem, bool)
Gets the suggested text from RadListDataItem
Declaration
protected string GetSuggestedText(RadListDataItem item, bool performAppend)
Parameters
item
The item.
performAppend
if set to true [perform append].
Returns
GetVisualItemAtPoint(Point)
Gets the visual item at point.
Declaration
public RadListVisualItem GetVisualItemAtPoint(Point location)
Parameters
location
The location.
Returns
IsExactSuggestion(string, string)
Determines whether the suggested text matches the pattern text
IsMatching(string, string)
Determines whether the two text variables are equal
OnItemsChanged(NotifyCollectionChangedEventArgs)
Raises the ItemsChanged event with the provided arguments.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs args)
Parameters
args
NotifyCollectionChangedEventArgs
The arguments that contain the data relevant to the items change.
Overrides
OnSelectedIndexChanged(int)
Fires the SelectedIndexChanged event.
Declaration
protected override void OnSelectedIndexChanged(int newIndex)
Parameters
newIndex
Overrides
OnSuggestedTextChanged(AutoCompleteAction)
Raises the event.
Declaration
protected void OnSuggestedTextChanged(AutoCompleteAction action)
Parameters
action
The action.
OnSuggestedTextChanged(SuggestedTextChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnSuggestedTextChanged(SuggestedTextChangedEventArgs e)
Parameters
e
The SuggestedTextChangedEventArgs instance containing the event data.
ResumeSuggestNotifications()
Resumes the event.
Declaration
public void ResumeSuggestNotifications()
SetSuggestedText(string, AutoCompleteAction)
Sets the suggested text.
Declaration
protected void SetSuggestedText(string text, AutoCompleteAction action)
Parameters
text
The text.
action
The action.
Suggest(string, TextPosition, TextPosition)
Performs text suggestion for concrete text pattern
Declaration
public void Suggest(string pattern, TextPosition startPosition, TextPosition endPosition)
Parameters
pattern
The pattern.
startPosition
The start position.
endPosition
The end position.
Suggest(string, TextPosition, TextPosition, bool)
Performs text suggestion for concrete text pattern
Declaration
public void Suggest(string pattern, TextPosition startPosition, TextPosition endPosition, bool notify)
Parameters
pattern
The pattern.
startPosition
The start position.
endPosition
The end position.
notify
if set to true [notify].
SuggestOverride(string)
Performs text suggestion for concrete text pattern
Declaration
protected virtual void SuggestOverride(string pattern)
Parameters
pattern
The pattern.
SuspendSuggestNotifications()
Suspends the event.
Declaration
public void SuspendSuggestNotifications()
Events
SuggestedTextChanged
Occurs when suggested text is changed
Declaration
public event SuggestedTextChangedEventHandler SuggestedTextChanged
Event Value