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

📄 htmltextbox.cs

📁 ASP开发网站的 关于网站的设计和说明 还有SQL的程序 数据库
💻 CS
📖 第 1 页 / 共 5 页
字号:
			get 
			{
				object savedState = this.ViewState["BreakMode"];
				return (savedState == null) ? BreakMode.ParagraphBreak : (BreakMode) savedState;
			}
			set 
			{
				ViewState["BreakMode"] = value;
			}
		}
		/// <summary>
		/// The width of the editor.
		/// </summary>
		[
		CategoryAttribute("Appearance")
		]
		public Unit Width 
		{
			get 
			{
				object savedState = this.ViewState["Width"];
				return (savedState == null) ? new Unit("100%") : (Unit) savedState;//SMR- CSK integration
			}
			set 
			{
				ViewState["Width"] = value;
			}
		}
		/// <summary>
		/// The height of the editor including toolbars.
		/// </summary>
		[
		CategoryAttribute("Appearance")
		]		
		public Unit Height 
		{
			get 
			{ 
				object savedState = this.ViewState["Height"];
				return (savedState == null) ? new Unit("400px") : (Unit) savedState;

			}
			set 
			{
				ViewState["Height"] = value;
			}
		}
		/// <summary>
		/// The back color of the entire editor area.
		/// </summary>
		[
		CategoryAttribute("Appearance")
		]		
		public Color BackColor 
		{
			get 
			{ 
				object savedState = this.ViewState["BackColor"];
				return (savedState == null) ? ColorTranslator.FromHtml("#9EBEF5") : (Color) savedState;
			}
			set 
			{
				ViewState["BackColor"] = value;
			}
		}
		/// <summary>
		/// The back color of the gutter of the tab area.
		/// </summary>
		[
		CategoryAttribute("Appearance")
		]		
		public Color GutterBackColor 
		{
			get 
			{
				object savedState = this.ViewState["GutterBackColor"];
				return (savedState == null) ? ColorTranslator.FromHtml("#81A9E2") : (Color) savedState;
			}
			set 
			{
				ViewState["GutterBackColor"] = value;
			}
		}
		/// <summary>
		/// The light color of the border of the Editor window.
		/// </summary>
		[
		CategoryAttribute("Appearance")
		]		
		public Color EditorBorderColorLight 
		{
			get 
			{ 
				object savedState = this.ViewState["EditorBorderColorLight"];
				return (savedState == null) ? ColorTranslator.FromHtml("#808080") : (Color) savedState;
			}
			set 
			{
				ViewState["EditorBorderColorLight"] = value;
			}
		}
		/// <summary>
		/// The dark color of the border of the Editor window.
		/// </summary>		
		[
		CategoryAttribute("Appearance")
		]
		public Color EditorBorderColorDark 
		{
			get 
			{ 
				object savedState = this.ViewState["EditorBorderColorDark"];
				return (savedState == null) ? ColorTranslator.FromHtml("#808080") : (Color) savedState;
			}
			set 
			{
				ViewState["EditorBorderColorDark"] = value;
			}
		}
		/// <summary>
		/// The light color of the border of the Editor window.
		/// </summary>
		[
		CategoryAttribute("Appearance")
		]		
		public Color GutterBorderColorLight 
		{
			get 
			{ 
				object savedState = this.ViewState["GutterBorderColorLight"];
				return (savedState == null) ? ColorTranslator.FromHtml("#FFFFFF") : (Color) savedState;
			}
			set 
			{
				ViewState["GutterBorderColorLight"] = value;
			}
		}
		/// <summary>
		/// The dark color of the border of the Editor window.
		/// </summary>
		[
		CategoryAttribute("Appearance")
		]		
		public Color GutterBorderColorDark 
		{
			get 
			{ 
				object savedState = this.ViewState["GutterBorderColorDark"];
				return (savedState == null) ? ColorTranslator.FromHtml("#808080") : (Color) savedState;
			}
			set 
			{
				ViewState["GutterBorderColorDark"] = value;
			}
		}
		/// <summary>
		/// Boolean value for if the client supports HtmlTextBox.
		/// </summary>
		[
		BrowsableAttribute(false)
		]		
		public bool IsMshtmlEditorCapable 
		{
			get 
			{
				try 
				{
					//SMR - Begin: CSK Integration
					if(!ForceDownLevel)
					{
						//SMR - End: CSK Integration
						HttpBrowserCapabilities BrowserInfo = Page.Request.Browser;
						return (
							(BrowserInfo.Browser.ToUpper().IndexOf("IE") > -1 && 
							BrowserInfo.MajorVersion >= 5)
							&&
							(BrowserInfo.Platform == "Win95" || 
							BrowserInfo.Platform == "Win98" || 
							BrowserInfo.Platform == "WinNT" ||
							BrowserInfo.Platform == "WinXP" ||
							BrowserInfo.Platform == "Win2000")
							);
						//SMR - Begin: CSK Integration
					}
					else
					{
						return false;
					}
					//SMR - End: CSK Integration
				} 
				catch 
				{
					return false;
				}
			}
		}

		//SMR - Begin: CSK Integration
		bool _forceDownLevel = false; 

		/// <summary>
		/// Boolean value for if HtmlTextBox should force downlevel rendering.
		/// </summary>
		[
		CategoryAttribute("Behavior")
		]
		public bool ForceDownLevel
		{
			get
			{
				return _forceDownLevel;
			}
			set
			{
				_forceDownLevel = value;
			}
		}
		//SMR - End: CSK Integration

		/// <summary>
		/// Boolean value for the client's browser supports the Basic Editor
		/// </summary>
		[
		BrowsableAttribute(false)
		]
		public bool IsBasicEditorCapable 
		{
			get 
			{ 
				try 
				{
					//SMR - Begin: CSK Integration
					return (
						(Page.Request.Browser.Browser.ToUpper().IndexOf("NETSCAPE") > -1)  || (Page.Request.Browser.Browser.ToUpper().IndexOf("IE") > -1) && 
						Page.Request.Browser.MajorVersion >= 5
						);
					//SMR - End: CSK Integration
					//return true;
				} 
				catch 
				{
					return false;
				}
			}
		}

		/// <summary>
		/// Determines what is displayed when a non-UpLevel browser tries to use the editor.
		/// </summary>
		[BrowsableAttribute(false)]		
		public DownlevelMode DownlevelMode 
		{
			get 
			{
				return DownlevelMode.TextArea;//SMR- CSK integration
			}
			//SMR- CSK integration - Set removed for CSK integration
		}
		/// <summary>
		/// The message displayed if DownlevelMode is set to Message.
		/// </summary>
		[
		CategoryAttribute("Appearance")
		]		
		public string DownlevelMessage 
		{
			get 
			{
				object savedState = this.ViewState["DownlevelMessage"];
				return (savedState == null) ? "Your browser is not able to display the editor." : (string) savedState;
			}
			set 
			{
				ViewState["DownlevelMessage"] = value;
			}
		}
		/// <summary>
		/// The columns of the textarea if DownlevelMode is set to TextArea
		/// </summary>
		[
		CategoryAttribute("Appearance")
		]		
		public int DownlevelColumns 
		{
			get 
			{ 
				object savedState = this.ViewState["DownlevelColumns"];
				return (savedState == null) ? 0 : (int) savedState;
			}
			set 
			{
				ViewState["DownlevelColumns"] = value;
			}
		}
		/// <summary>
		/// The rows of the textarea if DownlevelMode is set to TextArea
		/// </summary>
		[
		CategoryAttribute("Appearance")
		]		
		public int DownlevelRows 
		{
			get 
			{ 
				object savedState = this.ViewState["DownlevelRows"];
				return (savedState == null) ? 0 : (int) savedState;
			}
			set 
			{
				ViewState["DownlevelRows"] = value;
			}
		}
		/// <summary>
		/// The rows of the textarea if DownlevelMode is set to TextArea
		/// </summary>
		[
		CategoryAttribute("Behavior")
		]		
		public EditorMode StartMode 
		{
			get 
			{
				object savedState = this.ViewState["StartMode"];
				return (savedState == null) ? EditorMode.DesignMode : (EditorMode) savedState;
			}
			set 
			{
				ViewState["StartMode"] = value;
			}
		}
		/// <summary>
		/// The URL of the style sheet used in Design mode.
		/// </summary>
		[
		CategoryAttribute("External")
		]		
		public string DesignModeCss 
		{
			get 
			{ 
				object savedState = this.ViewState["DesignModeCss"];
				return (savedState == null) ? "" : (string) savedState;
			}
			set 
			{
				ViewState["DesignModeCss"] = value;
			}
		}
		/// <summary>
		/// The URL of the style sheet used in HTML mode.
		/// </summary>
		[
		CategoryAttribute("External")
		]				
		public string HtmlModeCss 
		{
			get 
			{ 
				object savedState = this.ViewState["HtmlModeCss"];
				return (savedState == null) ? "" : (string) savedState;
			}
			set 
			{
				ViewState["HtmlModeCss"] = value;
			}
		}
		/// <summary>
		/// The URL of the style sheet used in HTML mode.
		/// </summary>
		[
		CategoryAttribute("Behavior")
		]		
		public bool HtmlModeDefaultsToMonoSpaceFont 
		{
			get 
			{
				object savedState = this.ViewState["HtmlModeDefaultsToMonoSpaceFont"];
				return (savedState == null) ? true : (bool) savedState;
			}
			set 
			{

				ViewState["HtmlModeDefaultsToMonoSpaceFont"] = value;
			}
		}
		/// <summary>
		/// Autoconfigures the toolbar with a set of buttons.
		/// </summary>
		[
		CategoryAttribute("Toolbar Behavior")
		]
		public AutoConfigure AutoConfigure 
		{
			get 
			{
				object savedState = this.ViewState["AutoConfigure"];
				return (savedState == null) ? AutoConfigure.Alternate : (AutoConfigure) savedState;//SMR- CSK integration
			}
			set 
			{
				ViewState["AutoConfigure"] = value;
			}
		}
		/// <summary>
		/// A string of buttons used to create the toolbar. Use commas (,) to separate items.  A semicolon (;) will insert a separator and a pipe (|) will start a new Toolbar.  Possible values are ParagraphMenu, FontFacesMenu, FontSizesMenu, FontForeColorsMenu, FontForeColorPicker, FontBackColorsMenu, FontBackColorPicker, Bold, Italic, Underline, Strikethrough, Superscript, Subscript;InsertImageFromGallery, CreateLink, Unlink, RemoveFormat, JustifyLeft, JustifyRight, JustifyCenter, JustifyFull;BulletedList, NumberedList, Indent, Outdent, Cut, Copy, Paste, Delete;Undo, Redo, Print, Save, ieSpellCheck, StyleMenu, SymbolsMenu, InsertHtmlMenu, InsertRule, InsertDate, InsertTime, WordCount
		/// </summary>
		[
		CategoryAttribute("Toolbar Behavior")
		]	
		public string ToolbarLayout 
		{
			get 
			{ 
				object savedState = this.ViewState["ToolbarLayout"];
				return (savedState == null) ? _toolbarLayout : (string) savedState;
			}
			set 
			{
				ViewState["ToolbarLayout"] = value;
			}
		}	
		/// <summary>
		/// Determines whether Styles are applied to the scrollbar
		/// </summary>
		[
		CategoryAttribute("Behavior")
		]		
		public ScrollbarMode ScrollbarMode 
		{
			get 
			{
				object savedState = this.ViewState["ScrollbarMode"];
				return (savedState == null) ? ScrollbarMode.Style : (ScrollbarMode) savedState;
			}
			set 
			{
				ViewState["ScrollbarMode"] = value;
			}
		}
		/// <summary>
		/// Sets the style for the scrollbar
		/// </summary>
		[
		DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
		PersistenceMode(PersistenceMode.InnerProperty),
		NotifyParentProperty(true),
		CategoryAttribute("Appearance")
		]
		public virtual ScrollbarStyle ScrollbarStyle 

⌨️ 快捷键说明

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