?? htmltextbox.cs
字號(hào):
{
object savedState = this.ViewState["FontForeColorsMenuList"];
return (savedState == null) ?
new Color[] {Color.Black, Color.Gray, Color.DarkGray, Color.LightGray, Color.White, Color.Aquamarine, Color.Blue, Color.Navy, Color.Purple, Color.DeepPink, Color.Violet, Color.Pink, Color.DarkGreen, Color.Green, Color.YellowGreen, Color.Yellow, Color.Orange, Color.Red, Color.Brown, Color.BurlyWood, Color.Beige} :
(Color[]) savedState;
}
set
{
ViewState["FontForeColorsMenuList"] = value;
}
}
/// <summary>
/// A list of color names for the font fore colors drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string[] FontForeColorsMenuNames
{
get
{
object savedState = this.ViewState["FontForeColorsMenuNames"];
return (savedState == null) ?
new string[] {"Black", "Gray", "DarkGray", "LightGray", "White", "Aquamarine", "Blue", "Navy", "Purple", "DeepPink", "Violet", "Pink", "DarkGreen", "Green", "YellowGreen", "Yellow", "Orange", "Red", "Brown", "BurlyWood", "Beige"} :
(string[]) savedState;
}
set
{
ViewState["FontForeColorsMenuNames"] = value;
}
}
/// <summary>
/// The title for the font back colors drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string FontBackColorsMenuTitle
{
get
{
object savedState = this.ViewState["FontBackColorsMenuTitle"];
return (savedState == null) ? "Highlight" : (string) savedState;
}
set
{
ViewState["FontBackColorsMenuTitle"] = value;
}
}
/// <summary>
/// A list of colors for the font back colors drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public Color[] FontBackColorsMenuList
{
get
{
object savedState = this.ViewState["FontBackColorsMenuList"];
return (savedState == null) ?
new Color[] {Color.Black, Color.Gray, Color.DarkGray, Color.LightGray, Color.White, Color.Aquamarine, Color.Blue, Color.Navy, Color.Purple, Color.DeepPink, Color.Violet, Color.Pink, Color.DarkGreen, Color.Green, Color.YellowGreen, Color.Yellow, Color.Orange, Color.Red, Color.Brown, Color.BurlyWood, Color.Beige} :
(Color[]) savedState;
}
set
{
ViewState["FontBackColorsMenuList"] = value;
}
}
/// <summary>
/// A list of color names for the font back colors drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string[] FontBackColorsMenuNames
{
get
{
object savedState = this.ViewState["FontBackColorsMenuNames"];
return (savedState == null) ?
new string[] {"Black", "Gray", "DarkGray", "LightGray", "White", "Aquamarine", "Blue", "Navy", "Purple", "DeepPink", "Violet", "Pink", "DarkGreen", "Green", "YellowGreen", "Yellow", "Orange", "Red", "Brown", "BurlyWood", "Beige"} :
(string[]) savedState;
}
set
{
ViewState["FontBackColorsMenuNames"] = value;
}
}
/// <summary>
/// The title for the symbols drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string SymbolsMenuTitle
{
get
{
object savedState = this.ViewState["SymbolsMenuTitle"];
return (savedState == null) ? "Symbols" : (string) savedState;
}
set
{
ViewState["SymbolsMenuTitle"] = value;
}
}
/// <summary>
/// A list of HTML values for the symbols drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string[] SymbolsMenuList
{
get
{
object savedState = this.ViewState["SymbolsMenuList"];
return (savedState == null) ?
new string[] {"¢","£","¥","§","¿","¡","©","®","™","-","–","—","‘","’","“","”","á","é","í","ï","ñ","ó","°","·","«","»","¼","½","¾","¹","²","³","÷","±","×"} :
(string[]) savedState;
}
set
{
ViewState["SymbolsMenuList"] = value;
}
}
/// <summary>
/// The title for the styles drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string StyleMenuTitle
{
get
{
object savedState = this.ViewState["StyleMenuTitle"];
return (savedState == null) ? "Styles" : (string) savedState;
}
set
{
ViewState["StyleMenuTitle"] = value;
}
}
/// <summary>
/// A list of style names for the style drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string[] StyleMenuNames
{
get
{
object savedState;
savedState = this.ViewState["StyleMenuNames"];
if (savedState != null)
{
return (string[]) savedState;
}
return new string[] {};
}
set
{
ViewState["StyleMenuNames"] = value;
}
}
/// <summary>
/// A list of styles for the style drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string[] StyleMenuList
{
get
{
object savedState;
savedState = this.ViewState["StyleMenuList"];
if (savedState != null)
{
return (string[]) savedState;
}
return new string[] {};
}
set
{
ViewState["StyleMenuList"] = value;
}
}
/// <summary>
/// The title for the insert HTML drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string InsertHtmlMenuTitle
{
get
{
object savedState = this.ViewState["InsertHtmlMenuTitle"];
return (savedState == null) ? "Insert HTML" : (string) savedState;
}
set
{
ViewState["InsertHtmlTitle"] = value;
}
}
/// <summary>
/// A list of names for items in the insert HTML drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string[] InsertHtmlMenuNames
{
get
{
object savedState;
savedState = this.ViewState["InsertHtmlMenuNames"];
if (savedState != null)
{
return (string[]) savedState;
}
return new string[] {};
}
set
{
ViewState["InsertHtmlMenuNames"] = value;
}
}
/// <summary>
/// A list of HTML for the insert HTML drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string[] InsertHtmlMenuList
{
get
{
object savedState;
savedState = this.ViewState["InsertHtmlMenuList"];
if (savedState != null)
{
return (string[]) savedState;
}
return new string[] {};
}
set
{
ViewState["InsertHtmlMenuList"] = value;
}
}
/// <summary>
/// The title for the paragraph formatting drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string ParagraphMenuTitle
{
get
{
object savedState = this.ViewState["ParagraphMenuTitle"];
return (savedState == null) ? "Paragraph" : (string) savedState;
}
set
{
ViewState["ParagraphMenuTitle"] = value;
}
}
/// <summary>
/// A list of paragraph names for the paragraph formatting drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string[] ParagraphMenuNames
{
get
{
object savedState = this.ViewState["ParagraphMenuNames"];
return (savedState == null) ?
new string[] {"Normal","Heading 1","Heading 2","Heading 3","Heading 4","Heading 5","Heading 6","Formatted","Address"} :
(string[]) savedState;
}
set
{
ViewState["ParagraphMenuNames"] = value;
}
}
/// <summary>
/// A list of HTML values for the for the paragraph formatting drop down.
/// </summary>
[
CategoryAttribute("Toolbar Items")
]
public string[] ParagraphMenuList
{
get
{
object savedState = this.ViewState["ParagraphMenuList"];
return (savedState == null) ?
new string[] {"<body>","<h1>","<h2>","<h3>","<h4>","<h5>","<h6>","<pre>","<address>"} :
(string[]) savedState;
}
set
{
ViewState["ParagraphMenuList"] = value;
}
}
// Toolbar Properties
/// <summary>
/// Boolean value for whether the toolbars are hidden when the editor is in HTML mode.
/// </summary>
[
CategoryAttribute("Toolbar Behavior")
]
public bool AutoHideToolbar
{
get
{
object savedState = this.ViewState["AutoHideToolbar"];
return (savedState == null) ? true : (bool) savedState;
}
set
{
ViewState["AutoHideToolbar"] = value;
}
}
/// <summary>
/// Boolean value for whether the editor can go into HTML mode.
/// </summary>
[
CategoryAttribute("Behavior")
]
public bool AllowHtmlMode
{
get
{
object savedState = this.ViewState["AllowHtmlMode"];
return (savedState == null) ? true : (bool) savedState;
}
set
{
ViewState["AllowHtmlMode"] = value;
}
}
/// <summary>
/// Boolean value for whether the status area is shown when HtmlMode.Tabs is set.
/// </summary>
[
CategoryAttribute("Behavior")
]
public bool ShowStatusArea
{
get
{
object savedState = this.ViewState["ShowStatusArea"];
return (savedState == null) ? false : (bool) savedState;
}
set
{
ViewState["ShowStatusArea"] = value;
}
}
/// <summary>
/// The back color of each toolbar.
/// </summary>
[
CategoryAttribute("Toolbar Behavior")
]
public Color ToolbarBackColor
{
get
{
object savedState = this.ViewState["ToolbarBackColor"];
return (savedState == null) ? Color.Empty : (Color) savedState;
}
set
{
ViewState["ToolbarBackColor"] = value;
}
}
/// <summary>
/// Uses the file toolbar.background file from the current image directory.
/// </summary>
[
CategoryAttribute("Toolbar Behavior")
]
public bool ToolbarBackGroundImage
{
get
{
object savedState = this.ViewState["ToolbarBackGroundImage"];
return (savedState == null) ? true : (bool) savedState;
}
set
{
ViewState["ToolbarBackGroundImage"] = value;
}
}
// Base Editor Properties
/// <summary>
/// Determines how button titles are displayed
/// </summary>
[
CategoryAttribute("Toolbar Behavior")
]
public ButtonTitleMode ButtonTitleMode
{
get
{
object savedState = this.ViewState["ButtonTitleMode"];
return (savedState == null) ? ButtonTitleMode.None : (ButtonTitleMode) savedState;
}
set
{
ViewState["ButtonTitleMode"] = value;
}
}
/// <summary>
/// Determines what type of interface is used for HtmlMode
/// </summary>
[
CategoryAttribute("Behavior")
]
public HtmlMode HtmlMode
{
get
{
object savedState = this.ViewState["HtmlMode"];
return (savedState == null) ? HtmlMode.Tabs : (HtmlMode) savedState;
}
set
{
ViewState["HtmlMode"] = value;
}
}
/// <summary>
/// Whether the editor uses Paragraph tags or Line Breaks when Enter is pressed.
/// </summary>
[
CategoryAttribute("Behavior")
]
public BreakMode BreakMode
{
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -