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
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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