Back to Devexpress

SpellChecker.ParentContainer Property

windowsforms-devexpress-dot-xtraspellchecker-dot-spellchecker-b623edd9.md

latest3.8 KB
Original Source

SpellChecker.ParentContainer Property

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

Declaration

csharp
[DefaultValue(null)]
public Control ParentContainer { get; set; }
vb
<DefaultValue(Nothing)>
Public Property ParentContainer As Control

Property Value

TypeDefaultDescription
Controlnull

A Control object, which is the parent container for the controls to be checked.

|

Remarks

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

csharp
spellChecker1.SpellCheckMode = DevExpress.XtraSpellChecker.SpellCheckMode.AsYouType;
spellChecker1.ParentContainer = this;
spellChecker1.CheckAsYouTypeOptions.CheckControlsInParentContainer = true;

winforms-spell-checker-get-started/VB/XtraSpellCheckerGetStarted/Form1.vb#L32

vb
spellChecker1.SpellCheckMode = DevExpress.XtraSpellChecker.SpellCheckMode.AsYouType
spellChecker1.ParentContainer = Me
spellChecker1.CheckAsYouTypeOptions.CheckControlsInParentContainer = True

See Also

CheckContainer

CheckControlsInParentContainer

SpellChecker Class

SpellChecker Members

DevExpress.XtraSpellChecker Namespace