列表控件中 Toolbar 的集合。不能继承此类。使用用大小可按需动态增加的数组实现 IList 接口,Collection of Toolbar objects。
有关此类型所有成员的列表,请参阅 ToolbarCollection 成员。
System.Object
LionSky.WebControls.ToolbarCollection
此类型的所有公共静态(Visual Basic 中为 Shared)成员对多线程操作而言都是安全的。但不保证任何实例成员是线程安全的。
ToolbarCollection 是密封类。不能继承此类。ToolbarCollection 类表示 Toolbar 的集合,Toolbar 反过来表示工具栏列表中的项。若要以编程方式从列表控件中检索 Toolbar 对象,请使用以下方法之一:
<%@ Page Language="C#"%>
<%@ Register Assembly="WebHtmlEditor1.6" Namespace="LionSky.WebControls" TagPrefix="Lionsky" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
ToolbarButton tc = new ToolbarButton(LionSky.WebControls.ButtonType.Button, "", "CustomButton");
tc.CustomOnClickEventBody = @"alert (""Custom Command Button"");";
Toolbar tb = new Toolbar();
tb.Name = "Toolbar1";
tb.Tools.Add(tc);
WebHtmlEditor1.Toolbars.Add(tb);
}
protected void Button1_Click(Object sender, EventArgs e)
{
Response.Write(WebHtmlEditor1.Html);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<Lionsky:WebHtmlEditor ID="WebHtmlEditor1" runat="server">
</Lionsky:WebHtmlEditor>
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Submit" />
</div>
</form>
</body>
</html>
命名空间: LionSky.WebControls
程序集: WebHtmlEditor1.6 (在 WebHtmlEditor1.6.dll 中)
ToolbarCollection 成员 | LionSky.WebControls 命名空间