skip navigation
  • Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    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 RadDictionary

Represents a specialized dictionary that provides advanced functionality for RadSpellChecker, including support for localization and efficient data retrieval.

Inheritance
System.Object
RadDictionary
RadEn_USDictionary
RadIsolatedStorageCustomDictionary
RadNonPersistentCustomDictionary
Namespace: Telerik.Windows.Documents.Proofing
Assembly: Telerik.Windows.Controls.RichTextBox.dll

Syntax

public class RadDictionary : Object, IWordDictionary

Constructors

RadDictionary()

Declaration
public RadDictionary()

RadDictionary(Int32)

Declaration
public RadDictionary(int expectedSize)
Parameters
System.Int32 expectedSize

Fields

metaphoneByWord

Declaration
protected Dictionary<string, Tuple<string, string>> metaphoneByWord
Field Value
System.Collections.Generic.Dictionary<System.String, System.Tuple<System.String, System.String>>

wordsByMetaphone

Declaration
protected Dictionary<string, List<string>> wordsByMetaphone
Field Value
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<System.String>>

wordsByMetaphoneAlternate

Declaration
protected Dictionary<string, List<string>> wordsByMetaphoneAlternate
Field Value
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<System.String>>

Properties

DictionaryLoaded

Declaration
protected bool DictionaryLoaded { get; }
Property Value
System.Boolean

Words

Represents a collection of words used for proofing, enabling functionalities such as spell checking and grammar checking.

Declaration
public IEnumerable<string> Words { get; }
Property Value
System.Collections.Generic.IEnumerable<System.String>

Implements
IWordDictionary.Words

WordsList

Declaration
protected List<string> WordsList { get; set; }
Property Value
System.Collections.Generic.List<System.String>

Methods

AddWordToMetaphoneDictionaries(String, String, String)

Declaration
protected void AddWordToMetaphoneDictionaries(string word, string metaphone, string metaphoneAlternate)
Parameters
System.String word

System.String metaphone

System.String metaphoneAlternate

ContainsWord(String)

Determines whether the specified word exists in the dictionary.

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

The word to search for in the dictionary.

Returns
System.Boolean

True if the word is found; otherwise, false.

Implements
IWordDictionary.ContainsWord(String)

EnsureDictionaryLoaded()

Declaration
protected void EnsureDictionaryLoaded()

EnsureDictionaryLoadedOverride()

Declaration
protected virtual void EnsureDictionaryLoadedOverride()

GetMetaphoneKey(String)

Generates a metaphone key based on the specified input string.

Declaration
public string GetMetaphoneKey(string word)
Parameters
System.String word

The input string for which the metaphone key is to be generated.

Returns
System.String

A string representing the metaphone key derived from the input.

Implements
IWordDictionary.GetMetaphoneKey(String)

GetWordsByMetaphoneKey(String)

Retrieves a list of words from the dictionary that match the specified Metaphone key.

Declaration
public IEnumerable<string> GetWordsByMetaphoneKey(string word)
Parameters
System.String word

The Metaphone key used to search for corresponding words in the dictionary.

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

A collection of words that match the provided Metaphone key. If no words are found, an empty collection is returned.

Implements
IWordDictionary.GetWordsByMetaphoneKey(String)

Init(Int32)

Declaration
protected void Init(int expectedSize)
Parameters
System.Int32 expectedSize

Load(IEnumerable<String>)

Declaration
protected void Load(IEnumerable<string> entries)
Parameters
System.Collections.Generic.IEnumerable<System.String> entries

Load(Stream)

Loads the dictionary data from the specified stream.

Declaration
public void Load(Stream stream)
Parameters
System.IO.Stream stream

The stream containing the dictionary data to be loaded.

OnDataChanged()

Declaration
protected virtual void OnDataChanged()

RemoveWordFromMetaphoneDictionaries(String, String, String)

Declaration
protected void RemoveWordFromMetaphoneDictionaries(string word, string metaphone, string metaphoneAlternate)
Parameters
System.String word

System.String metaphone

System.String metaphoneAlternate

Events

DataChanged

Declaration
public event EventHandler DataChanged
Event Type
System.EventHandler

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML 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.