VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Spelling.UI Namespace / RichTextBoxSpellCheckManager Class
Members Example



In This Topic
    RichTextBoxSpellCheckManager Class
    In This Topic
    Provides manager for spell checking in System.Windows.Forms.RichTextBox.
    Object Model
    RichTextBoxSpellCheckManager ClassSpellCheckManager Class
    Syntax
    'Declaration
     
    Public Class RichTextBoxSpellCheckManager 
    public class RichTextBoxSpellCheckManager 
    public __gc class RichTextBoxSpellCheckManager 
    public ref class RichTextBoxSpellCheckManager 
    Remarks
    This class adds the following string resources in Vintasoft.Imaging.ImagingEnvironment.ResourceManager:
    • "RICHTEXTBOXSPELLCHECKMANAGER_ADD_TO_DICTIONARY_{0}" = "Add \'{0}\' to dictionary"
    Example
    This example shows how to create the RichTextBoxSpellCheckManager for specified System.Windows.Forms.RichTextBox.
    ''' <summary>
    ''' Creates the spell check manager for specified <see cref="System.Windows.Forms.RichTextBox"/>.
    ''' </summary>
    ''' <param name="textBox">The rich text box.</param>
    ''' <param name="engines">The spell check engines.</param>
    ''' <returns>
    ''' The spell check manager for rich text box.
    ''' </returns>
    Public Shared Function CreateManager(textBox As System.Windows.Forms.RichTextBox, engines As System.Collections.Generic.List(Of Vintasoft.Imaging.Spelling.ISpellCheckEngine)) As Vintasoft.Imaging.Spelling.UI.RichTextBoxSpellCheckManager
        ' create the spell check manager
        Dim spellCheckManager As New Vintasoft.Imaging.Spelling.SpellCheckManager()
        ' specify the spell check engines, which the spell check manager must use for spell checking
        spellCheckManager.Engines = engines
                
        ' create the spell check manager for a rich text box
        Dim richTextBoxSpellCheckManager As New Vintasoft.Imaging.Spelling.UI.RichTextBoxSpellCheckManager()
        ' specify the rich text box in which text must be spell checked
        richTextBoxSpellCheckManager.TextBox = textBox
        ' specify the spell check manager that should be used for spell checking of text in the rich text box
        richTextBoxSpellCheckManager.SpellCheckManager = spellCheckManager
                
        Return richTextBoxSpellCheckManager
    End Function
    /// <summary>
    /// Creates the spell check manager for specified <see cref="System.Windows.Forms.RichTextBox"/>.
    /// </summary>
    /// <param name="textBox">The rich text box.</param>
    /// <param name="engines">The spell check engines.</param>
    /// <returns>
    /// The spell check manager for rich text box.
    /// </returns>
    public static Vintasoft.Imaging.Spelling.UI.RichTextBoxSpellCheckManager CreateManager(
        System.Windows.Forms.RichTextBox textBox,
        System.Collections.Generic.List<Vintasoft.Imaging.Spelling.ISpellCheckEngine> engines)
    {
        // create the spell check manager
        Vintasoft.Imaging.Spelling.SpellCheckManager spellCheckManager =
            new Vintasoft.Imaging.Spelling.SpellCheckManager();
        // specify the spell check engines, which the spell check manager must use for spell checking
        spellCheckManager.Engines = engines;
                
        // create the spell check manager for a rich text box
        Vintasoft.Imaging.Spelling.UI.RichTextBoxSpellCheckManager richTextBoxSpellCheckManager =
            new Vintasoft.Imaging.Spelling.UI.RichTextBoxSpellCheckManager();
        // specify the rich text box in which text must be spell checked
        richTextBoxSpellCheckManager.TextBox = textBox;
        // specify the spell check manager that should be used for spell checking of text in the rich text box
        richTextBoxSpellCheckManager.SpellCheckManager = spellCheckManager;
                
        return richTextBoxSpellCheckManager;
    }
    Inheritance Hierarchy

    System.Object
       Vintasoft.Imaging.Spelling.UI.RichTextBoxSpellCheckManager

    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also