toolbar.cs

来自「一个基于 Internet Explorer 中 MSHTML 技术的 ASP.」· CS 代码 · 共 83 行

CS
83
字号
using System;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Text;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using FreeTextBoxControls.Common;

namespace FreeTextBoxControls
{
	/// <summary>
	/// A Toolbar for FreeTextBox
	/// </summary>
	public class Toolbar
	{
		public Toolbar() {}

		public Toolbar(string name)
		{
			this.Name = name;
		}
		public Toolbar(string name, bool moveable)
		{
			Name = name;
			Moveable = moveable;
		}
		private string name = "";
		private bool movable = false;
		private bool visible = true;

		/// <summary>
		/// The name of the Toolbar
		/// </summary>
		public string Name
		{
			get
			{
				return name;
			}
			set
			{
				name = value;
			}
		}
		/// <summary>
		/// Whether the toolbar will be rendered visible
		/// </summary>
		public bool Visible
		{
			get
			{
				return visible;
			}
			set
			{
				visible = value;
			}
		}
		/// <summary>
		/// Not Implimented
		/// </summary>
		public bool Moveable
		{
			get
			{
				return movable;
			}
			set
			{
				movable = value;
			}
		}

		/// <summary>
		/// The Items (ToolbarButton, ToolbarDropDownList, ToolbarSeparator) in the toolbar
		/// </summary>
		public ToolbarItemsList Items = new ToolbarItemsList();
	}
}

⌨️ 快捷键说明

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