skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DocumentSpellChecker

Inheritance
System.Object
DocumentSpellChecker
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinForms.Documents.Proofing
Assembly: Telerik.WinControls.RichTextEditor.dll

Syntax

public class DocumentSpellChecker : ISpellChecker

Constructors

DocumentSpellChecker()

Declaration
public DocumentSpellChecker()

DocumentSpellChecker(ICustomWordDictionary)

Declaration
public DocumentSpellChecker(ICustomWordDictionary customDictionary)
Parameters
ICustomWordDictionary customDictionary

Fields

EditDistanceCoefficient

Declaration
public static readonly int EditDistanceCoefficient
Field Value
System.Int32

EditDistanceLimit

Declaration
public static readonly int EditDistanceLimit
Field Value
System.Int32

EditDistanceOneBoost

Declaration
public static readonly int EditDistanceOneBoost
Field Value
System.Int32

EditDistanceScanLimit

Declaration
public static readonly int EditDistanceScanLimit
Field Value
System.Int32

EndsDifferencePenalty

Declaration
public static readonly int EndsDifferencePenalty
Field Value
System.Int32

MaxNumberOfSuggestions

Declaration
public static readonly int MaxNumberOfSuggestions
Field Value
System.Int32

MetaphoneEqualBoost

Declaration
public static readonly int MetaphoneEqualBoost
Field Value
System.Int32

Properties

AutomaticallyLoadDefaultDictionaries

Gets or sets a value indicating whether MEF should be used to load default dictionaries.

Declaration
public bool AutomaticallyLoadDefaultDictionaries { get; set; }
Property Value
System.Boolean

true if default dictionaries should be loaded automatically; otherwise, false.

DictionaryList

Gets or sets the list of dictionaries used by SpellChecker. Generally this property is not intended to be used directly from your code, rather it is set automatically by MEF.

Declaration
public List<Lazy<IWordDictionary, IWordDictionaryMetadata>> DictionaryList { get; set; }
Property Value
System.Collections.Generic.List<System.Lazy<IWordDictionary, IWordDictionaryMetadata>>

Settings

Declaration
public SpellCheckerSettings Settings { get; set; }
Property Value
SpellCheckerSettings

Implements
ISpellChecker.Settings

SpellCheckingCulture

Declaration
public CultureInfo SpellCheckingCulture { get; set; }
Property Value
System.Globalization.CultureInfo

Implements
ISpellChecker.SpellCheckingCulture

Methods

AddCustomDictionary(ICustomWordDictionary, CultureInfo)

Adds a custom dictionary with the specified culture to the spell checker. If a dictionary with this culture already exists, it is overwritten.

Declaration
public void AddCustomDictionary(ICustomWordDictionary customDictionary, CultureInfo culture)
Parameters
ICustomWordDictionary customDictionary

System.Globalization.CultureInfo culture

AddDictionary(Lazy<IWordDictionary>, CultureInfo)

Adds a lazily initialized dictionary with the specified culture to the spell checker. If a dictionary with this culture already exists, it is overwritten.

Declaration
public void AddDictionary(Lazy<IWordDictionary> lazyDictionary, CultureInfo culture)
Parameters
System.Lazy<IWordDictionary> lazyDictionary

System.Globalization.CultureInfo culture

AddDictionary(IWordDictionary, CultureInfo)

Adds a dictionary with the specified culture to the spell checker. If a dictionary with this culture already exists, it is overwritten.

Declaration
public void AddDictionary(IWordDictionary dictionary, CultureInfo culture)
Parameters
IWordDictionary dictionary

System.Globalization.CultureInfo culture

AddWord(String)

Declaration
public void AddWord(string word)
Parameters
System.String word

Implements
ISpellChecker.AddWord(String)

AddWord(String, CultureInfo)

Declaration
public void AddWord(string word, CultureInfo culture)
Parameters
System.String word

System.Globalization.CultureInfo culture

Implements
ISpellChecker.AddWord(String, CultureInfo)

CanAddWord()

Declaration
public bool CanAddWord()
Returns
System.Boolean

Implements
ISpellChecker.CanAddWord()

CanAddWord(CultureInfo)

Declaration
public bool CanAddWord(CultureInfo culture)
Parameters
System.Globalization.CultureInfo culture

Returns
System.Boolean

Implements
ISpellChecker.CanAddWord(CultureInfo)

CheckWordIsCorrect(String)

Declaration
public bool CheckWordIsCorrect(string word)
Parameters
System.String word

Returns
System.Boolean

Implements
ISpellChecker.CheckWordIsCorrect(String)

CheckWordIsCorrect(String, CultureInfo)

Declaration
public bool CheckWordIsCorrect(string word, CultureInfo culture)
Parameters
System.String word

System.Globalization.CultureInfo culture

Returns
System.Boolean

Implements
ISpellChecker.CheckWordIsCorrect(String, CultureInfo)

ClearDictionaries()

Clears the dictionaries used by the spellchecker. This method is used internally upon disposal of RadRichTextBox. Loaded dictionaries can be removed by using the RemoveDictionary and RemoveCustomDictionary methods.

Declaration
public void ClearDictionaries()

GetCustomDictionary()

Declaration
public ICustomWordDictionary GetCustomDictionary()
Returns
ICustomWordDictionary

Implements
ISpellChecker.GetCustomDictionary()

GetCustomDictionary(CultureInfo)

Declaration
public ICustomWordDictionary GetCustomDictionary(CultureInfo culture)
Parameters
System.Globalization.CultureInfo culture

Returns
ICustomWordDictionary

Implements
ISpellChecker.GetCustomDictionary(CultureInfo)

GetDictionary()

Declaration
public IWordDictionary GetDictionary()
Returns
IWordDictionary

Implements
ISpellChecker.GetDictionary()

GetDictionary(CultureInfo)

Declaration
public IWordDictionary GetDictionary(CultureInfo culture)
Parameters
System.Globalization.CultureInfo culture

Returns
IWordDictionary

Implements
ISpellChecker.GetDictionary(CultureInfo)

GetSuggestions(String)

Declaration
public ICollection<string> GetSuggestions(string word)
Parameters
System.String word

Returns
System.Collections.Generic.ICollection<System.String>

Implements
ISpellChecker.GetSuggestions(String)

GetSuggestions(String, CultureInfo)

Declaration
public ICollection<string> GetSuggestions(string word, CultureInfo culture)
Parameters
System.String word

System.Globalization.CultureInfo culture

Returns
System.Collections.Generic.ICollection<System.String>

Implements
ISpellChecker.GetSuggestions(String, CultureInfo)

RemoveCustomDictionary(CultureInfo)

Removes the custom dictionary with the specified culture from the spell checker. This method returns false if no such dictionary is found.

Declaration
public bool RemoveCustomDictionary(CultureInfo culture)
Parameters
System.Globalization.CultureInfo culture

Returns
System.Boolean

RemoveCustomDictionary(ICustomWordDictionary, CultureInfo)

This method is obsolete. Use RemoveCustomDictionary(CultureInfo) instead.

Declaration
[Obsolete]
public bool RemoveCustomDictionary(ICustomWordDictionary customDictionary, CultureInfo culture)
Parameters
ICustomWordDictionary customDictionary

System.Globalization.CultureInfo culture

Returns
System.Boolean

RemoveDictionary(CultureInfo)

Removes the dictionary with the specified culture from the spell checker. This method returns false if no such dictionary is found.

Declaration
public bool RemoveDictionary(CultureInfo culture)
Parameters
System.Globalization.CultureInfo culture

Returns
System.Boolean

RemoveWord(String)

Declaration
public void RemoveWord(string word)
Parameters
System.String word

Implements
ISpellChecker.RemoveWord(String)

RemoveWord(String, CultureInfo)

Declaration
public void RemoveWord(string word, CultureInfo culture)
Parameters
System.String word

System.Globalization.CultureInfo culture

Implements
ISpellChecker.RemoveWord(String, CultureInfo)

Events

DataChanged

Declaration
public event EventHandler DataChanged
Event Type
System.EventHandler

Implements
ISpellChecker.DataChanged

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.