VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Spelling.UI Namespace / RichTextBoxSpellCheckManager Class
Members Object Syntax Example Hierarchy Requirements SeeAlso
In This Topic
    RichTextBoxSpellCheckManager Class
    In This Topic
    Provides manager for spell checking in System.Windows.Forms.RichTextBox.
    Object Model
    SpellCheckManager RichTextBoxSpellCheckManager
    Syntax
    'Declaration
    
    Public Class RichTextBoxSpellCheckManager
    
    
    public class RichTextBoxSpellCheckManager
    
    
    public __gc class RichTextBoxSpellCheckManager
    
    
    public ref class RichTextBoxSpellCheckManager
    
    
    Example

    This C#/VB.NET code 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: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also