Back to Devexpress

SpellingSettings.UnregisterTextControl(Type) Method

wpf-devexpress-dot-xpf-dot-spellchecker-dot-spellingsettings-dot-unregistertextcontrol-x28-system-dot-type-x29.md

latest2.8 KB
Original Source

SpellingSettings.UnregisterTextControl(Type) Method

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

Declaration

csharp
public static void UnregisterTextControl(
    Type controlType
)
vb
Public Shared Sub UnregisterTextControl(
    controlType As Type
)

Parameters

NameTypeDescription
controlTypeType

The Type of the custom control.

|

Remarks

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

csharp
UnsubscribeFromEvents();
SpellingSettings.UnregisterTextControl(typeof(XpfCellInplaceEditor));
base.OnDetaching();

wpf-spreadsheet-spell-check-cell-text/VB/SpreadsheetSpellChecker.vb#L26

vb
UnsubscribeFromEvents()
SpellingSettings.UnregisterTextControl(GetType(XpfCellInplaceEditor))
MyBase.OnDetaching()

See Also

SpellingSettings Class

SpellingSettings Members

DevExpress.Xpf.SpellChecker Namespace