Back to Devexpress

CheckAsYouTypeOptions.CheckControlsInParentContainer Property

windowsforms-devexpress-dot-xtraspellchecker-dot-checkasyoutypeoptions.md

latest3.7 KB
Original Source

CheckAsYouTypeOptions.CheckControlsInParentContainer Property

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

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public bool CheckControlsInParentContainer { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Property CheckControlsInParentContainer As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the spell check is started automatically when any control within a container gets focus; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CheckControlsInParentContainer
SpellChecker

.CheckAsYouTypeOptions .CheckControlsInParentContainer

|

Remarks

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

csharp
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

vb
spellChecker1.ParentContainer = Me
spellChecker1.CheckAsYouTypeOptions.CheckControlsInParentContainer = True
' Set focus to the RichTextBox control to show red wavy lines under misspelled words.

See Also

CheckAsYouTypeOptions Class

CheckAsYouTypeOptions Members

DevExpress.XtraSpellChecker Namespace