Custom SpellChecker from RadSpell

1 posts, 0 answers
  1. manjerekar
    manjerekar avatar
    10 posts
    Member since:
    Jul 2010

    Posted 29 Aug 2011 Link to this post

    Hi Team,

    i've created a custom spellchecker inherting from RadSpell


    i want to set the DictionaryPath and the LocalizationPath at the control level itself and provide the dictinary's and resource at the control. The developer when he uses my control he should only set the ControlToCheck property in his application.

    i tried but couldn't find a solution.

    code below:

    CSPSpellChecker Class:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Telerik.Web.UI;
    using System.Drawing;
    using System.Web.UI.WebControls;
    using System.Web.UI;
    using System.ComponentModel;

    namespace mySpellCheckerControl
    {
        public class CSPSpellChecker : CSPBaseWebControl
        {
            #region class attributes

            /// <summary>
            /// The internal RadSpell wrapped control
            /// </summary>
            RadSpell _internalControl;

            #endregion

            #region Class constructors

            /// <summary>
            /// Default constructor
            /// </summary>
            public CSPSpellChecker()
            {
                //Instantiates the wrapped control
                _internalControl = new RadSpell();
                _internalControl.DictionaryPath = "/Dictionary";
                _internalControl.LocalizationPath = "/Localization";
            }

            #endregion

            #region Internal Control

            /// <summary>
            /// Returns the InternalFrameworkElement
            /// </summary>
            internal RadSpell InternalControl
            {
                get
                {
                    return _internalControl;
                }
            }

            #endregion

            #region Properties

            #region Property:AccessKey
            ///  <summary>
            ///    Gets or sets the AccessKey
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string AccessKey
            {
                get
                {
                    return _internalControl.AccessKey;
                }
                set
                {
                    _internalControl.AccessKey = value;
                }
            }
            #endregion

            #region Property:AdditionalQueryString
            ///  <summary>
            ///    Gets or sets the AdditionalQueryString
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string AdditionalQueryString
            {
                get
                {
                    return _internalControl.AdditionalQueryString;
                }
                set
                {
                    _internalControl.AdditionalQueryString = value;
                }
            }
            #endregion

            #region Property:AjaxUrl
            ///  <summary>
            ///    Gets or sets the AjaxUrl
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string AjaxUrl
            {
                get
                {
                    return _internalControl.AjaxUrl;
                }
                set
                {
                    _internalControl.AjaxUrl = value;
                }
            }
            #endregion

            #region Property:AllowAddCustom
            ///  <summary>
            ///    Gets or sets the AllowAddCustom
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public bool AllowAddCustom
            {
                get
                {
                    return _internalControl.AllowAddCustom;
                }
                set
                {
                    _internalControl.AllowAddCustom = value;
                }
            }
            #endregion

            #region Property:AppRelativeTemplateSourceDirectory
            ///  <summary>
            ///    Gets or sets the AppRelativeTemplateSourceDirectory
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string AppRelativeTemplateSourceDirectory
            {
                get
                {
                    return _internalControl.AppRelativeTemplateSourceDirectory;
                }
                set
                {
                    _internalControl.AppRelativeTemplateSourceDirectory = value;
                }
            }
            #endregion

            #region Property:Attributes
            ///  <summary>
            ///    Gets or sets the Attributes
            /// Returns:
            ///     A System.Web.UI.AttributeCollection Object.
            /// </summary>
            public System.Web.UI.AttributeCollection Attributes
            {
                get
                {
                    return _internalControl.Attributes;
                }
            }
            #endregion

            #region Property:BackColor
            ///  <summary>
            ///    Gets or sets the BackColor
            /// Returns:
            ///     A System.Drawing.Color Object.
            /// </summary>
            public Color BackColor
            {
                get
                {
                    return _internalControl.BackColor;
                }
                set
                {
                    _internalControl.BackColor = value;
                }
            }
            #endregion

            #region Property:BorderColor
            ///  <summary>
            ///    Gets or sets the BorderColor
            /// Returns:
            ///     A System.Drawing.Color Object.
            /// </summary>
            public Color BorderColor
            {
                get
                {
                    return _internalControl.BorderColor;
                }
                set
                {
                    _internalControl.BorderColor = value;
                }
            }
            #endregion

            #region Property:BorderStyle
            ///  <summary>
            ///    Gets or sets the BorderStyle
            /// Returns:
            ///     A System.Web.UI.WebControls.BorderStyle Object.
            /// </summary>
            public BorderStyle BorderStyle
            {
                get
                {
                    return _internalControl.BorderStyle;
                }
                set
                {
                    _internalControl.BorderStyle = value;
                }
            }
            #endregion

            #region Property:BorderWidth
            ///  <summary>
            ///    Gets or sets the BorderWidth
            /// Returns:
            ///     A System.Web.UI.WebControls.Unit Object.
            /// </summary>
            public Unit BorderWidth
            {
                get
                {
                    return _internalControl.BorderWidth;
                }
                set
                {
                    _internalControl.BorderWidth = value;
                }
            }
            #endregion

            #region Property:ButtonText
            ///  <summary>
            ///    Gets or sets the ButtonText
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string ButtonText
            {
                get
                {
                    return _internalControl.ButtonText;
                }
                set
                {
                    _internalControl.ButtonText = value;
                }
            }
            #endregion

            #region Property:ButtonType
            ///  <summary>
            ///    Gets or sets the ButtonType
            /// Returns:
            ///     A CSPButtonType Object.
            /// </summary>
            public CSPButtonType ButtonType
            {
                get
                {
                    return (CSPButtonType)_internalControl.ButtonType;
                }
                set
                {
                    _internalControl.ButtonType = (Telerik.Web.UI.ButtonType)value;
                }
            }
            #endregion

            #region Property:ClientID
            ///  <summary>
            ///    Gets or sets the ClientID
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public override string ClientID
            {
                get
                {
                    return _internalControl.ClientID;
                }
            }
            #endregion

            #region Property:ClientIDMode
            ///  <summary>
            ///    Gets or sets the ClientIDMode
            /// Returns:
            ///     A System.Web.UI.ClientIDMode Object.
            /// </summary>
            public override ClientIDMode ClientIDMode
            {
                get
                {
                    return _internalControl.ClientIDMode;
                }
                set
                {
                    _internalControl.ClientIDMode = value;
                }
            }
            #endregion

            #region Property:ClientTextSource
            ///  <summary>
            ///    Gets or sets the ClientTextSource
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string ClientTextSource
            {
                get
                {
                    return _internalControl.ClientTextSource;
                }
                set
                {
                    _internalControl.ClientTextSource = value;
                }
            }
            #endregion

            #region Property:Controls
            ///  <summary>
            ///    Gets or sets the Controls
            /// Returns:
            ///     A System.Web.UI.ControlCollection Object.
            /// </summary>
            //public override ControlCollection Controls
            //{
            //    get
            //    {
            //        return _internalControl.Controls;
            //    }
            //}
            #endregion

            #region Property:ControlsToCheck
            ///  <summary>
            ///    Gets or sets the ControlsToCheck
            /// Returns:
            ///     A System.String[] Object.
            /// </summary>
            public string[] ControlsToCheck
            {
                get
                {
                    return _internalControl.ControlsToCheck;
                }
                set
                {
                    _internalControl.ControlsToCheck = value;
                }
            }
            #endregion

            #region Property:ControlStyle
            ///  <summary>
            ///    Gets or sets the ControlStyle
            /// Returns:
            ///     A System.Web.UI.WebControls.Style Object.
            /// </summary>
            public new Style ControlStyle
            {
                get
                {
                    return _internalControl.ControlStyle;
                }
            }
            #endregion

            #region Property:ControlStyleCreated
            ///  <summary>
            ///    Gets or sets the ControlStyleCreated
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public new bool ControlStyleCreated
            {
                get
                {
                    return _internalControl.ControlStyleCreated;
                }
            }
            #endregion

            #region Property:ControlToCheck
            ///  <summary>
            ///    Gets or sets the ControlToCheck
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string ControlToCheck
            {
                get
                {
                    return _internalControl.ControlToCheck;
                }
                set
                {
                    _internalControl.ControlToCheck = value;
                }
            }
            #endregion

            #region Property:CssClass
            ///  <summary>
            ///    Gets or sets the CssClass
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public override string CssClass
            {
                get
                {
                    return _internalControl.CssClass;
                }
                set
                {
                    _internalControl.CssClass = value;
                }
            }
            #endregion

            #region Property:CustomDictionarySourceTypeName
            ///  <summary>
            ///    Gets or sets the CustomDictionarySourceTypeName
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string CustomDictionarySourceTypeName
            {
                get
                {
                    return _internalControl.CustomDictionarySourceTypeName;
                }
                set
                {
                    _internalControl.CustomDictionarySourceTypeName = value;
                }
            }
            #endregion

            #region Property:CustomDictionarySuffix
            ///  <summary>
            ///    Gets or sets the CustomDictionarySuffix
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string CustomDictionarySuffix
            {
                get
                {
                    return _internalControl.CustomDictionarySuffix;
                }
                set
                {
                    _internalControl.CustomDictionarySuffix = value;
                }
            }
            #endregion

            #region Property:DialogsCssFile
            ///  <summary>
            ///    Gets or sets the DialogsCssFile
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string DialogsCssFile
            {
                get
                {
                    return _internalControl.DialogsCssFile;
                }
                set
                {
                    _internalControl.DialogsCssFile = value;
                }
            }
            #endregion

            #region Property:DialogsScriptFile
            ///  <summary>
            ///    Gets or sets the DialogsScriptFile
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string DialogsScriptFile
            {
                get
                {
                    return _internalControl.DialogsScriptFile;
                }
                set
                {
                    _internalControl.DialogsScriptFile = value;
                }
            }
            #endregion

            #region Property:DialogTypeName
            ///  <summary>
            ///    Gets or sets the DialogTypeName
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string DialogTypeName
            {
                get
                {
                    return _internalControl.DialogTypeName;
                }
                set
                {
                    _internalControl.DialogTypeName = value;
                }
            }
            #endregion

            #region Property:DialogVirtualPath
            ///  <summary>
            ///    Gets or sets the DialogVirtualPath
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string DialogVirtualPath
            {
                get
                {
                    return _internalControl.DialogVirtualPath;
                }
                set
                {
                    _internalControl.DialogVirtualPath = value;
                }
            }
            #endregion

            #region Property:DictionaryLanguage
            ///  <summary>
            ///    Gets or sets the DictionaryLanguage
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string DictionaryLanguage
            {
                get
                {
                    return _internalControl.DictionaryLanguage;
                }
                set
                {
                    _internalControl.DictionaryLanguage = value;
                }
            }
            #endregion

            #region Property:DictionaryPath
            ///  <summary>
            ///    Gets or sets the DictionaryPath
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string DictionaryPath
            {
                get
                {
                    return _internalControl.DictionaryPath;
                }
                set
                {
                    _internalControl.DictionaryPath = value;
                }
            }
            #endregion

            #region Property:EditDistance
            ///  <summary>
            ///    Gets or sets the EditDistance
            /// Returns:
            ///     A System.Int32 Object.
            /// </summary>
            public int EditDistance
            {
                get
                {
                    return _internalControl.EditDistance;
                }
                set
                {
                    _internalControl.EditDistance = value;
                }
            }
            #endregion

            #region Property:EnableAjaxSkinRendering
            ///  <summary>
            ///    Gets or sets the EnableAjaxSkinRendering
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public bool EnableAjaxSkinRendering
            {
                get
                {
                    return _internalControl.EnableAjaxSkinRendering;
                }
                set
                {
                    _internalControl.EnableAjaxSkinRendering = value;
                }
            }
            #endregion

            #region Property:Enabled
            ///  <summary>
            ///    Gets or sets the Enabled
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public override bool Enabled
            {
                get
                {
                    return _internalControl.Enabled;
                }
                set
                {
                    _internalControl.Enabled = value;
                }
            }
            #endregion

            #region Property:EnableEmbeddedBaseStylesheet
            ///  <summary>
            ///    Gets or sets the EnableEmbeddedBaseStylesheet
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public bool EnableEmbeddedBaseStylesheet
            {
                get
                {
                    return _internalControl.EnableEmbeddedBaseStylesheet;
                }
                set
                {
                    _internalControl.EnableEmbeddedBaseStylesheet = value;
                }
            }
            #endregion

            #region Property:EnableEmbeddedScripts
            ///  <summary>
            ///    Gets or sets the EnableEmbeddedScripts
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public bool EnableEmbeddedScripts
            {
                get
                {
                    return _internalControl.EnableEmbeddedScripts;
                }
                set
                {
                    _internalControl.EnableEmbeddedScripts = value;
                }
            }
            #endregion

            #region Property:EnableEmbeddedSkins
            ///  <summary>
            ///    Gets or sets the EnableEmbeddedSkins
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public bool EnableEmbeddedSkins
            {
                get
                {
                    return _internalControl.EnableEmbeddedSkins;
                }
                set
                {
                    _internalControl.EnableEmbeddedSkins = value;
                }
            }
            #endregion

            #region Property:EnableTheming
            ///  <summary>
            ///    Gets or sets the EnableTheming
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public override bool EnableTheming
            {
                get
                {
                    return _internalControl.EnableTheming;
                }
                set
                {
                    _internalControl.EnableTheming = value;
                }
            }
            #endregion

            #region Property:EnableViewState
            ///  <summary>
            ///    Gets or sets the EnableViewState
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public override bool EnableViewState
            {
                get
                {
                    return _internalControl.EnableViewState;
                }
                set
                {
                    _internalControl.EnableViewState = value;
                }
            }
            #endregion

            #region Property:Font
            ///  <summary>
            ///    Gets or sets the Font
            /// Returns:
            ///     A System.Web.UI.WebControls.FontInfo Object.
            /// </summary>
            public override FontInfo Font
            {
                get
                {
                    return _internalControl.Font;
                }
            }
            #endregion

            #region Property:ForeColor
            ///  <summary>
            ///    Gets or sets the ForeColor
            /// Returns:
            ///     A System.Drawing.Color Object.
            /// </summary>
            public override Color ForeColor
            {
                get
                {
                    return _internalControl.ForeColor;
                }
                set
                {
                    _internalControl.ForeColor = value;
                }
            }
            #endregion

            #region Property:FragmentIgnoreOptions
            ///  <summary>
            ///    Gets or sets the FragmentIgnoreOptions
            /// Returns:
            ///     A CSPFragmentIgnoreOptions Object.
            /// </summary>
            public CSPFragmentIgnoreOptions FragmentIgnoreOptions
            {
                get
                {
                    return (CSPFragmentIgnoreOptions)_internalControl.FragmentIgnoreOptions;
                }
                set
                {
                    _internalControl.FragmentIgnoreOptions = (FragmentIgnoreOptions)value;
                }
            }
            #endregion

            #region Property:HandlerUrl
            ///  <summary>
            ///    Gets or sets the HandlerUrl
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string HandlerUrl
            {
                get
                {
                    return _internalControl.HandlerUrl;
                }
                set
                {
                    _internalControl.HandlerUrl = value;
                }
            }
            #endregion

            #region Property:HasAttributes
            ///  <summary>
            ///    Gets or sets the HasAttributes
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public new bool HasAttributes
            {
                get
                {
                    return _internalControl.HasAttributes;
                }
            }
            #endregion

            #region Property:Height
            ///  <summary>
            ///    Gets or sets the Height
            /// Returns:
            ///     A System.Web.UI.WebControls.Unit Object.
            /// </summary>
            public override Unit Height
            {
                get
                {
                    return _internalControl.Height;
                }
                set
                {
                    _internalControl.Height = value;
                }
            }
            #endregion

            #region Property:ID
            ///  <summary>
            ///    Gets or sets the ID
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public override string ID
            {
                get
                {
                    return _internalControl.ID;
                }
                set
                {
                    _internalControl.ID = value;
                }
            }
            #endregion

            #region Property:IsClientID
            ///  <summary>
            ///    Gets or sets the IsClientID
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public bool IsClientID
            {
                get
                {
                    return _internalControl.IsClientID;
                }
                set
                {
                    _internalControl.IsClientID = value;
                }
            }
            #endregion

            #region Property:Language
            ///  <summary>
            ///    Gets or sets the Language
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string Language
            {
                get
                {
                    return _internalControl.Language;
                }
                set
                {
                    _internalControl.Language = value;
                }
            }
            #endregion

            #region Property:LocalizationPath
            ///  <summary>
            ///    Gets or sets the LocalizationPath
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string LocalizationPath
            {
                get
                {
                    return _internalControl.LocalizationPath;
                }
                set
                {
                    _internalControl.LocalizationPath = value;
                }
            }
            #endregion

            #region Property:NamingContainer
            ///  <summary>
            ///    Gets or sets the NamingContainer
            /// Returns:
            ///     A System.Web.UI.Control Object.
            /// </summary>
            public override Control NamingContainer
            {
                get
                {
                    return _internalControl.NamingContainer;
                }
            }
            #endregion

            #region Property:OnClientCheckCancelled
            ///  <summary>
            ///    Gets or sets the OnClientCheckCancelled
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string OnClientCheckCancelled
            {
                get
                {
                    return _internalControl.OnClientCheckCancelled;
                }
                set
                {
                    _internalControl.OnClientCheckCancelled = value;
                }
            }
            #endregion

            #region Property:OnClientCheckFinished
            ///  <summary>
            ///    Gets or sets the OnClientCheckFinished
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string OnClientCheckFinished
            {
                get
                {
                    return _internalControl.OnClientCheckFinished;
                }
                set
                {
                    _internalControl.OnClientCheckFinished = value;
                }
            }
            #endregion

            #region Property:OnClientCheckStarted
            ///  <summary>
            ///    Gets or sets the OnClientCheckStarted
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string OnClientCheckStarted
            {
                get
                {
                    return _internalControl.OnClientCheckStarted;
                }
                set
                {
                    _internalControl.OnClientCheckStarted = value;
                }
            }
            #endregion

            #region Property:OnClientDialogClosed
            ///  <summary>
            ///    Gets or sets the OnClientDialogClosed
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string OnClientDialogClosed
            {
                get
                {
                    return _internalControl.OnClientDialogClosed;
                }
                set
                {
                    _internalControl.OnClientDialogClosed = value;
                }
            }
            #endregion

            #region Property:OnClientLoad
            ///  <summary>
            ///    Gets or sets the OnClientLoad
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string OnClientLoad
            {
                get
                {
                    return _internalControl.OnClientLoad;
                }
                set
                {
                    _internalControl.OnClientLoad = value;
                }
            }
            #endregion

            #region Property:Page
            ///  <summary>
            ///    Gets or sets the Page
            /// Returns:
            ///     A System.Web.UI.Page Object.
            /// </summary>
            //public override Page Page
            //{
            //    get
            //    {
            //        return _internalControl.Page;
            //    }
            //    set
            //    {
            //        _internalControl.Page = value;
            //    }
            //}
            #endregion

            #region Property:Parent
            ///  <summary>
            ///    Gets or sets the Parent
            /// Returns:
            ///     A System.Web.UI.Control Object.
            /// </summary>
            //public override Control Parent
            //{
            //    get
            //    {
            //        return _internalControl.Parent;
            //    }
            //}
            #endregion

            #region Property:RegisterWithScriptManager
            ///  <summary>
            ///    Gets or sets the RegisterWithScriptManager
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public bool RegisterWithScriptManager
            {
                get
                {
                    return _internalControl.RegisterWithScriptManager;
                }
                set
                {
                    _internalControl.RegisterWithScriptManager = value;
                }
            }
            #endregion

            #region Property:RenderingCompatibility
            ///  <summary>
            ///    Gets or sets the RenderingCompatibility
            /// Returns:
            ///     A System.Version Object.
            /// </summary>
            public override Version RenderingCompatibility
            {
                get
                {
                    return _internalControl.RenderingCompatibility;
                }
                set
                {
                    _internalControl.RenderingCompatibility = value;
                }
            }
            #endregion

            #region Property:Site
            ///  <summary>
            ///    Gets or sets the Site
            /// Returns:
            ///     A System.ComponentModel.ISite interface.
            /// </summary>
            public new ISite Site
            {
                get
                {
                    return _internalControl.Site;
                }
                set
                {
                    _internalControl.Site = value;
                }
            }
            #endregion

            #region Property:Skin
            ///  <summary>
            ///    Gets or sets the Skin
            /// Returns:
            ///     A System.string Object.
            /// </summary>
            public string Skin
            {
                get
                {
                    return _internalControl.Skin;
                }
                set
                {
                    _internalControl.Skin = value;
                }
            }
            #endregion

            #region Property:SkinID
            ///  <summary>
            ///    Gets or sets the SkinID
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public override string SkinID
            {
                get
                {
                    return _internalControl.SkinID;
                }
                set
                {
                    _internalControl.SkinID = value;
                }
            }
            #endregion

            #region Property:SpellChecked
            ///  <summary>
            ///    Gets or sets the SpellChecked
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public bool SpellChecked
            {
                get
                {
                    return _internalControl.SpellChecked;
                }
            }
            #endregion

            #region Property:SpellCheckProvider
            ///  <summary>
            ///    Gets or sets the SpellCheckProvider
            /// Returns:
            ///     A CSPSpellCheckProvider Object.
            /// </summary>
            public CSPSpellCheckProvider SpellCheckProvider
            {
                get
                {
                    return (CSPSpellCheckProvider)_internalControl.SpellCheckProvider;
                }
                set
                {
                    _internalControl.SpellCheckProvider = (SpellCheckProvider)value;
                }
            }
            #endregion

            #region Property:SpellCheckProviderTypeName
            ///  <summary>
            ///    Gets or sets the SpellCheckProviderTypeName
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public string SpellCheckProviderTypeName
            {
                get
                {
                    return _internalControl.SpellCheckProviderTypeName;
                }
                set
                {
                    _internalControl.SpellCheckProviderTypeName = value;
                }
            }
            #endregion

            #region Property:Style
            ///  <summary>
            ///    Gets or sets the Style
            /// Returns:
            ///     A System.Web.UI.CssStyleCollection Object.
            /// </summary>
            public new CssStyleCollection Style
            {
                get
                {
                    return _internalControl.Style;
                }
            }
            #endregion

            #region Property:SupportedLanguages
            ///  <summary>
            ///    Gets or sets the SupportedLanguages
            /// Returns:
            ///     A System.String[] Object.
            /// </summary>
            public string[] SupportedLanguages
            {
                get
                {
                    return _internalControl.SupportedLanguages;
                }
                set
                {
                    _internalControl.SupportedLanguages = value;
                }
            }
            #endregion

            #region Property:SupportsDisabledAttribute
            ///  <summary>
            ///    Gets or sets the SupportsDisabledAttribute
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            public override bool SupportsDisabledAttribute
            {
                get
                {
                    return _internalControl.SupportsDisabledAttribute;
                }
            }
            #endregion

            #region Property:TabIndex
            ///  <summary>
            ///    Gets or sets the TabIndex
            /// Returns:
            ///     A System.Int16 Object.
            /// </summary>
            public override short TabIndex
            {
                get
                {
                    return _internalControl.TabIndex;
                }
                set
                {
                    _internalControl.TabIndex = value;
                }
            }
            #endregion

            #region Property:TemplateControl
            ///  <summary>
            ///    Gets or sets the TemplateControl
            /// Returns:
            ///     A System.Web.UI.TemplateControl Object.
            /// </summary>
            public new TemplateControl TemplateControl
            {
                get
                {
                    return _internalControl.TemplateControl;
                }
                set
                {
                    _internalControl.TemplateControl = value;
                }
            }
            #endregion

            #region Property:TemplateSourceDirectory
            ///  <summary>
            ///    Gets or sets the TemplateSourceDirectory
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public override string TemplateSourceDirectory
            {
                get
                {
                    return _internalControl.TemplateSourceDirectory;
                }
            }
            #endregion

            #region Property:ToolTip
            ///  <summary>
            ///    Gets or sets the ToolTip
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public override string ToolTip
            {
                get
                {
                    return _internalControl.ToolTip;
                }
                set
                {
                    _internalControl.ToolTip = value;
                }
            }
            #endregion

            #region Property:UniqueID
            ///  <summary>
            ///    Gets or sets the UniqueID
            /// Returns:
            ///     A System.String Object.
            /// </summary>
            public override string UniqueID
            {
                get
                {
                    return _internalControl.UniqueID;
                }
            }
            #endregion

            #region Property:ViewStateMode
            ///  <summary>
            ///    Gets or sets the ViewStateMode
            /// Returns:
            ///     A System.Web.UI.ViewStateMode Object.
            /// </summary>
            public override ViewStateMode ViewStateMode
            {
                get
                {
                    return _internalControl.ViewStateMode;
                }
                set
                {
                    _internalControl.ViewStateMode = value;
                }
            }
            #endregion

            #region Property:Visible
            ///  <summary>
            ///    Gets or sets the Visible
            /// Returns:
            ///     A System.Boolean Object.
            /// </summary>
            //public override bool Visible
            //{
            //    get
            //    {
            //        return _internalControl.Visible;
            //    }
            //    set
            //    {
            //        _internalControl.Visible = value;
            //    }
            //}
            #endregion

            #region Property:Width
            ///  <summary>
            ///    Gets or sets the Width
            /// Returns:
            ///     A System.Web.UI.WebControls.Unit Object.
            /// </summary>
            public override Unit Width
            {
                get
                {
                    return _internalControl.Width;
                }
                set
                {
                    _internalControl.Width = value;
                }
            }
            #endregion

            #region Property:WordIgnoreOptions
            ///  <summary>
            ///    Gets or sets the WordIgnoreOptions
            /// Returns:
            ///     A CSPWordIgnoreOptions Object.
            /// </summary>
            public CSPWordIgnoreOptions WordIgnoreOptions
            {
                get
                {
                    return (CSPWordIgnoreOptions)_internalControl.WordIgnoreOptions;
                }
                set
                {
                    _internalControl.WordIgnoreOptions = (WordIgnoreOptions)value;
                }
            }
            #endregion

            #endregion

            #region Methods

            protected override void CreateChildControls()
            {
                this.Controls.Add(_internalControl);
                base.CreateChildControls();
            }

            #endregion
        }
    }

    ----------------
    CSPBaseWebControl  Class:

    using System.ComponentModel;
    using System.Web.UI.WebControls;
    using Telerik.Web.UI;
    using System.Web.UI;
    using System.Drawing.Design;
    using System.Runtime;
    using System.Globalization;
    using System;

    namespace mySpellCheckerControl
    {

        /// <summary>
        /// Base Control inheriting from WebControl and with translation related properties
        /// </summary>
       //[ToolboxItem(false)]
        public abstract class CSPBaseWebControl : WebControl
        {

            #region Class constructors

            /// <summary>
            /// Default Constructors
            /// </summary>
            public CSPBaseWebControl()
            {

              
            }

            #endregion

                 
        }

     
    }

     ---------------------

    Enum CSPButtonType:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace mySpellCheckerControl
    {
        public enum CSPButtonType
        {
            None = 0,
            ImageButton = 1,
            LinkButton = 2,
            PushButton = 3,
        }
    }

    -------------------------------------------------------------
    Enum CSPFragmentIgnoreOptions:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace mySpellCheckerControl
    {
        [Flags]
        public enum CSPFragmentIgnoreOptions
        {
            None = 0,
            FileNames = 1,
            Urls = 2,
            EmailAddresses = 4,
            All = 7,
        }
    }

    -------------------------------------

    Enum CSPSpellCheckProvider:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace mySpellCheckerControl
    {
        /// <summary>
        /// The spellcheck provider enumeration.
        /// </summary>
        public enum CSPSpellCheckProvider
        {
            // Summary:
            //     The default provider. The same as PhoneticProvider
            [Obsolete("This value is obsolete. Please, use PhoneticProvider instead.", false)]
            TelerikProvider = 0,
            //
            // Summary:
            //     This provider uses the edit distance algorithm. It will work for non-western
            //     languages.
            EditDistanceProvider = 1,
            //
            // Summary:
            //     This provider uses phonetic codes to provide "sounds like" word suggestions.
            //     Really effective for English, and less so for other languages.
            PhoneticProvider = 2,
            //
            // Summary:
            //     This provider automates Microsoft Word via its COM Interop interface.
            MicrosoftWordProvider = 3,
        }
    }

    -------------------------------------------
    Enum CSPWordIgnoreOptions:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace mySpellCheckerControl
    {
         [Flags]
        public enum CSPWordIgnoreOptions
        {
            None = 0,
            //
            // Summary:
            //     Specifies whether or not to check words in CAPITALS (e.g. 'UNESCO')
            UPPERCASE = 1,
            //
            // Summary:
            //     Specifies whether or not to check words in Capitals (e.g. 'Washington')
            WordsWithCapitalLetters = 2,
            //
            // Summary:
            //     Specifies whether or not to count repeating words as errors (e.g. 'very very')
            RepeatedWords = 4,
            //
            // Summary:
            //     Specifies whether or not to check words containing numbers (e.g. 'l8r')
            WordsWithNumbers = 8,
        }
    }

    ------------------------------------------------------------------------------------------------------------------------------------------------------------

    pls add these files and to a customLibrary project with proper Teleriks references.

    request you to provide a solution for the same.


    Thank you
    Manjerekar
Back to Top