windowsforms-devexpress-dot-xtraspellchecker-dot-checkasyoutypeoptions.md
Gets or sets whether the spell checker is activated on a user entering the control in the parent container.
Namespace : DevExpress.XtraSpellChecker
Assembly : DevExpress.XtraSpellChecker.v25.2.dll
NuGet Package : DevExpress.Win.SpellChecker
[DefaultValue(false)]
[XtraSerializableProperty]
public bool CheckControlsInParentContainer { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Property CheckControlsInParentContainer As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the spell check is started automatically when any control within a container gets focus; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to CheckControlsInParentContainer |
|---|---|
| SpellChecker |
.CheckAsYouTypeOptions .CheckControlsInParentContainer
|
If the CheckControlsInParentContainer property value is set to true , the spell checker activates the Check As You Type mode for a control on a form when this control gets a focus. So, misspelled words in a control’s text are underlined whenever a user enters the control.
Note
You can disable spell check for a particular control at design time by setting the CanCheckText on … field value in the Property Grid to false.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CheckControlsInParentContainer property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-spell-checker-get-started/CS/XtraSpellCheckerGetStarted/Form1.cs#L38
spellChecker1.ParentContainer = this;
spellChecker1.CheckAsYouTypeOptions.CheckControlsInParentContainer = true;
// Set focus to the RichTextBox control to show red wavy lines under misspelled words.
winforms-spell-checker-get-started/VB/XtraSpellCheckerGetStarted/Form1.vb#L33
spellChecker1.ParentContainer = Me
spellChecker1.CheckAsYouTypeOptions.CheckControlsInParentContainer = True
' Set focus to the RichTextBox control to show red wavy lines under misspelled words.
See Also