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

📄 htmltablerow.cs

📁 不错的人事管理系统
💻 CS
字号:
using System;
using System.Web.UI;

namespace System.Web.UI.HtmlControls
{
	/// <summary>
	/// Summary description for HtmlTableRow.
	/// </summary>
	//.custom instance void System.Web.UI.ParseChildrenAttribute::.
	public class HtmlTableRow : HtmlContainerControl
	{
		protected class HtmlTableCellControlCollection : ControlCollection
		{
			
			internal HtmlTableCellControlCollection(Control owner) : base(owner) 
			{
			}

			public virtual void Add(Control child) 
			{
				if (child as HtmlTableCell != null) 
				{
					this.Add(child);
					return;
				}
				throw new ArgumentException(System.Web.HttpRuntime.FormatResourceString("Cannot_Have_Children_Of_Type", "HtmlTableRow", child.GetType().Name.ToString()));
			}

			public virtual void AddAt(int index, Control child) 
			{
				if (child as HtmlTableCell != null) 
				{
					this.AddAt(index, child);
					return;
				}
				throw new ArgumentException(System.Web.HttpRuntime.FormatResourceString("Cannot_Have_Children_Of_Type", "HtmlTableRow", child.GetType().Name.ToString()));
			}
			private HtmlControls.HtmlTableCellCollection cells;
		}
		public HtmlTableRow() : base("tr") 
		{
		}

		protected virtual ControlCollection CreateControlCollection() 
		{
			return new HtmlTableCellControlCollection(this);
		}

		protected virtual void RenderChildren(HtmlTextWriter writer) 
		{
			writer.WriteLine();
			writer.Indent = writer.Indent + 1;
			this.RenderChildren(writer);
			writer.Indent = writer.Indent - 1;
		}

		protected virtual void RenderEndTag(HtmlTextWriter writer) 
		{
			this.RenderEndTag(writer);
			writer.WriteLine();
		}

		public string Align
		{
			get
			{
				string local0;

				local0 = this.Attributes["align"];
				if (local0 == null)
					return "";
				return local0;
			}
			set
			{
				this.Attributes["align"]= System.Web.UI.HtmlControls.HtmlControl.MapStringAttributeToString(value);
			}
		}

		public string BgColor 
		{
			get
			{
				string local0;

				local0 = this.Attributes["bgcolor"];
				if (local0 == null)
					return "";
				return local0;
			}
			set
			{
				this.Attributes["bgcolor"]= System.Web.UI.HtmlControls.HtmlControl.MapStringAttributeToString(value);
			}
		}

		public string BorderColor 
		{
			get
			{
				string local0;

				local0 = this.Attributes["bordercolor"];
				if (local0 == null)
					return "";
				return local0;
			}
			set
			{
				this.Attributes["bordercolor"]= System.Web.UI.HtmlControls.HtmlControl.MapStringAttributeToString(value);
			}
		}

		public virtual HtmlTableCellCollection Cells 
		{
			get
			{
				throw new Exception("");
//				if (this.cells == null)
//					this.cells = new HtmlTableCellCollection(this);
//				return this.cells;
			}
		}

		public string Height 
		{
			get
			{
				string local0;

				local0 = this.Attributes["height"];
				if (local0 == null)
					return "";
				return local0;
			}
			set
			{
				this.Attributes["height"]= System.Web.UI.HtmlControls.HtmlControl.MapStringAttributeToString(value);
			}
		}

		public virtual string InnerHtml 
		{
			get
			{
				throw new NotSupportedException(System.Web.HttpRuntime.FormatResourceString("InnerHtml_not_supported", this.GetType().Name));
			}
			set
			{
				throw new NotSupportedException(System.Web.HttpRuntime.FormatResourceString("InnerHtml_not_supported", this.GetType().Name));
			}
		}

		public virtual string InnerText
		{
			get
			{
				throw new NotSupportedException(System.Web.HttpRuntime.FormatResourceString("InnerText_not_supported", this.GetType().Name));
			}
			set
			{
				throw new NotSupportedException(System.Web.HttpRuntime.FormatResourceString("InnerText_not_supported", this.GetType().Name));
			}
		}

		public string VAlign 
		{
			get
			{
				string local0;

				local0 = this.Attributes["valign"];
				if (local0 == null)
					return "";
				return local0;
			}
			set
			{
				this.Attributes["valign"]= System.Web.UI.HtmlControls.HtmlControl.MapStringAttributeToString(value);
			}
		}
	}
}

⌨️ 快捷键说明

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