⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmleditorconfiguration.cs

📁 BugNET is an issue tracking and project issue management solution built using the ASP.NET web applic
💻 CS
字号:
using System;
using System.Configuration;

namespace BugNET.Providers.HtmlEditorProviders
{
    /// <summary>
    /// Configuration handler for the html editor provider
    /// </summary>
    /// <example>
    /// <?xml version="1.0"?>
    /// <configuration>
    ///    <configSections>
    ///      <section name="HtmlEditorProvider" 
    ///         type="BugNET.Providers.HtmlEditorProviders.HtmlEditorConfiguration, BugNET.Providers.HtmlEditorProviders" 
    ///         allowDefinition="MachineToApplication"/>
    ///    </configSections>
    ///  <HtmlEditorProvider defaultProvider="FckHtmlEditorProvider">
    ///    <providers>
    ///      <add name="TextboxHTMLProvider" 
    ///          type="BugNET.Providers.HtmlEditorProviders.TextboxHtmlEditorProvider, 
    ///                BugNET.Providers.TextboxHtmlEditorProvider" 
    ///          Height="600" Width="800"/>
    ///      <add name="FreeTextBoxHTMLProvider" 
    ///          type="MyCompany2.FreeTextBoxHTMLProvider, 
    ///                FreeTextBoxHTMLProvider" 
    ///          Height="600" Width="800"/>
    ///      <add name="FCKEditorHTMLProvider" 
    ///          type="BugNET.Providers.HtmlEditorProviders.FckHtmlEditorProvider, 
    ///                BugNET.Providers.FckHtmlEditorProvider" 
    ///          Height="600" Width="800"/>
    ///    </providers>
    ///  </HtmlEditorProvider>
    ///</configuration>
    /// </example>
    public class HtmlEditorConfiguration : ConfigurationSection
    {

        /// <summary>
        /// Gets the providers.
        /// </summary>
        /// <value>The providers.</value>
        [ConfigurationProperty("providers")]
        public ProviderSettingsCollection Providers
        {
            get
            {
                return (ProviderSettingsCollection)base["providers"];
            }
        }

        /// <summary>
        /// Gets or sets the default provider.
        /// </summary>
        /// <value>The default provider.</value>
        [ConfigurationProperty("defaultProvider", DefaultValue = "TextboxHtmlEditorProvider")]
        [StringValidator(MinLength = 1)]
        public string DefaultProvider
        {
            get
            {
                return (string)base["defaultProvider"];
            }
            set
            {
                base["defaultProvider"] = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -