C# Класс Dev2.CustomControls.Controls.SmartTextBox

A TextBox with support for displaying a list of suggestions when the user misspells a word. The user presses the F1 key to display the list of suggestions.
Documentation: http://www.codeproject.com/KB/WPF/SmartTextBox.aspx
Наследование: System.Windows.Controls.TextBox
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
SuggestionListBoxStyleProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
GetSpellingError ( ) : System.Windows.Controls.SpellingError

Returns the SpellingError for the word at the current caret index, or null if the current word is not misspelled.

HideSuggestions ( ) : void

Hides the list of suggestions and returns input focus to the input area. If the list of suggestions is not already displayed, nothing happens.

ShowSuggestions ( ) : void

Shows the list of suggestions. If the current word is not misspelled this method does nothing.

Защищенные методы

Метод Описание
OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

Hides the list of suggestions.

OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void

Shows/hides the list of suggestions.

OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void

Ensures that the list of suggestions is hidden when the TextBox is resized.

OnTextChanged ( System.Windows.Controls.TextChangedEventArgs e ) : void

Hides the list of suggestions if a spelling error no longer exists at the current caret location in the TextBox.

Приватные методы

Метод Описание
ApplySelectedSuggestion ( ) : void
AttemptToHideSuggestions ( ) : void
AttemptToShowSuggestions ( ) : void
FindBeginningOfCurrentWord ( ) : int
FindClosestCharacterInCurrentWord ( ) : int
FindEndOfCurrentWord ( ) : int
OnSuggestionListBoxStyleChanged ( DependencyObject depObj, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SmartTextBox ( ) : System
suggestionList_IsKeyboardFocusWithinChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
suggestionList_ItemContainerGenerator_StatusChanged ( object sender, EventArgs e ) : void
suggestionList_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
suggestionList_PreviewKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Описание методов

GetSpellingError() публичный Метод

Returns the SpellingError for the word at the current caret index, or null if the current word is not misspelled.
public GetSpellingError ( ) : System.Windows.Controls.SpellingError
Результат System.Windows.Controls.SpellingError

HideSuggestions() публичный Метод

Hides the list of suggestions and returns input focus to the input area. If the list of suggestions is not already displayed, nothing happens.
public HideSuggestions ( ) : void
Результат void

OnMouseDown() защищенный Метод

Hides the list of suggestions.
protected OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
Результат void

OnPreviewKeyDown() защищенный Метод

Shows/hides the list of suggestions.
protected OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
Результат void

OnRenderSizeChanged() защищенный Метод

Ensures that the list of suggestions is hidden when the TextBox is resized.
protected OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
sizeInfo System.Windows.SizeChangedInfo
Результат void

OnTextChanged() защищенный Метод

Hides the list of suggestions if a spelling error no longer exists at the current caret location in the TextBox.
protected OnTextChanged ( System.Windows.Controls.TextChangedEventArgs e ) : void
e System.Windows.Controls.TextChangedEventArgs
Результат void

ShowSuggestions() публичный Метод

Shows the list of suggestions. If the current word is not misspelled this method does nothing.
public ShowSuggestions ( ) : void
Результат void

Описание свойств

SuggestionListBoxStyleProperty публичное статическое свойство

Represents the SuggestionListBoxStyle property. This field is read-only.
public static DependencyProperty,System.Windows SuggestionListBoxStyleProperty
Результат System.Windows.DependencyProperty