📄 toolbarpostbackbutton.cs
字号:
using System;
namespace FreeTextBoxControls
{
//ADD: Ethan J. Brown
/// <summary>
/// A button used in an Toolbar that supports a postback event
/// </summary>
public class ToolbarPostBackButton : ToolbarItem
{
public ToolbarPostBackButton() {}
public ToolbarPostBackButton(string title, string name)
{
this.Title = title;
this.Name = name;
this.Function = "FTB_" + name + "_CLIENTID";
this.ScriptBlock = @"
<script language=""JavaScript"">
function FTB_" + name + @"_CLIENTID(editor,htmlmode) {
<POSTBACK>" + name + @"</POSTBACK>
}
</script>";
}
private bool titleVisible = false;
/*
/// <summary>
/// The event fired when the button is clicked.
/// </summary>
public event EventHandler Click;
/// <summary>
/// Event for button click
/// </summary>
protected virtual void OnClick(EventArgs e)
{
if (Click != null)
{
Click(this, e);
}
}
*/
/// <summary>
/// Determines whether a button's Title is shown
/// </summary>
public bool TitleVisible
{
get
{
return titleVisible;
}
set
{
titleVisible = value;
}
}
/// <summary>
/// Determines how the title of the button will be displayed
/// </summary>
public ButtonTitleMode ButtonTitleMode = ButtonTitleMode.None;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -