wpf-devexpress-dot-xpf-dot-spellchecker-dot-spellingsettings-dot-unregistertextcontrol-x28-system-dot-type-x29.md
Excludes controls of the specified type from the list of controls for which spell checking is enabled.
Namespace : DevExpress.Xpf.SpellChecker
Assembly : DevExpress.Xpf.SpellChecker.v25.2.dll
NuGet Package : DevExpress.Wpf.SpellChecker
public static void UnregisterTextControl(
Type controlType
)
Public Shared Sub UnregisterTextControl(
controlType As Type
)
| Name | Type | Description |
|---|---|---|
| controlType | Type |
The Type of the custom control.
|
The UnregisterTextControl revokes the registration performed by the SpellingSettings.RegisterTextControl method.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UnregisterTextControl(Type) method.
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.
wpf-spreadsheet-spell-check-cell-text/CS/SpreadsheetSpellChecker.cs#L17
UnsubscribeFromEvents();
SpellingSettings.UnregisterTextControl(typeof(XpfCellInplaceEditor));
base.OnDetaching();
wpf-spreadsheet-spell-check-cell-text/VB/SpreadsheetSpellChecker.vb#L26
UnsubscribeFromEvents()
SpellingSettings.UnregisterTextControl(GetType(XpfCellInplaceEditor))
MyBase.OnDetaching()
See Also