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