windowsforms-devexpress-dot-xtraspellchecker-dot-spellchecker-b623edd9.md
Gets or sets the control, representing the parent container for the XtraSpellChecker instance.
Namespace : DevExpress.XtraSpellChecker
Assembly : DevExpress.XtraSpellChecker.v25.2.dll
NuGet Package : DevExpress.Win.SpellChecker
[DefaultValue(null)]
public Control ParentContainer { get; set; }
<DefaultValue(Nothing)>
Public Property ParentContainer As Control
| Type | Default | Description |
|---|---|---|
| Control | null |
A Control object, which is the parent container for the controls to be checked.
|
Use the ParentContainer property to specify the control that contains the controls which should be checked for spelling mistakes. It could be a form or a panel populated with text controls. You can check all controls contained within the parent container by calling the SpellChecker.CheckContainer method without parameter. In the SpellCheckMode.AsYouType checking mode the spellchecker can be activated automatically for each control within the ParentContainer if the CheckAsYouTypeOptions.CheckControlsInParentContainer option is set to true.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ParentContainer 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#L37
spellChecker1.SpellCheckMode = DevExpress.XtraSpellChecker.SpellCheckMode.AsYouType;
spellChecker1.ParentContainer = this;
spellChecker1.CheckAsYouTypeOptions.CheckControlsInParentContainer = true;
winforms-spell-checker-get-started/VB/XtraSpellCheckerGetStarted/Form1.vb#L32
spellChecker1.SpellCheckMode = DevExpress.XtraSpellChecker.SpellCheckMode.AsYouType
spellChecker1.ParentContainer = Me
spellChecker1.CheckAsYouTypeOptions.CheckControlsInParentContainer = True
See Also