SpellCheck Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides real-time spell-checking functionality to text-editing controls, such as TextBox and RichTextBox.
public ref class SpellCheck sealed
public sealed class SpellCheck
type SpellCheck = class
Public NotInheritable Class SpellCheck
- Inheritance
-
SpellCheck
Remarks
To enable the spelling checker, set the SpellCheck.IsEnabled property to true
on a text-editing control. When this spelling checker is enabled, misspelled words are underlined by using a red wavy line, as shown in the following illustration. Spelling checker is supported only when WPF provides a default dictionary. In .NET Framework 4, WPF provides dictionaries for English, French, German, and Spanish.
To add a custom dictionary, add the location of the lexicon file to the CustomDictionaries collection.
Fields
CustomDictionariesProperty |
Identifies the CustomDictionaries dependency property. |
IsEnabledProperty |
Identifies the IsEnabled dependency property. |
SpellingReformProperty |
Identifies the SpellingReform dependency property. |
Properties
CustomDictionaries |
Gets the collection of lexicon file locations that are used for custom spell checking. |
IsEnabled |
Gets or sets a value that determines whether the spelling checker is enabled on this text-editing control, such as TextBox or RichTextBox. |
SpellingReform |
Gets or sets the spelling reform rules that are used by the spelling checker. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetCustomDictionaries(TextBoxBase) |
Gets the collection of lexicon file locations that are used for custom spelling checkers on a specified text-editing control. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetIsEnabled(TextBoxBase) |
Returns a value that indicates whether the spelling checker is enabled on the specified text-editing control. |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
SetIsEnabled(TextBoxBase, Boolean) |
Enables or disables the spelling checker on the specified text-editing control, such as TextBox or RichTextBox. |
SetSpellingReform(TextBoxBase, SpellingReform) |
Determines the spelling reform rules that are used by the spelling checker. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기