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

📄 tablecell.cs

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

namespace System.Web.UI.WebControls
{
	/// <summary>
	/// Summary description for TableCell.
	/// </summary>
	public class TableCell : WebControl
	{
		public TableCell() : base(System.Web.UI.HtmlTextWriterTag.Td) 
		{
			this.PreventAutoID();
		}

		internal TableCell(System.Web.UI.HtmlTextWriterTag tagKey) : base(tagKey) 
		{
			this.PreventAutoID();
		}

		protected override void AddAttributesToRender(System.Web.UI.HtmlTextWriter writer) 
		{
//			int local0;
//
//			this.AddAttributesToRender(writer);
//			local0 = this.ColumnSpan;
//			if (local0 > 0)
//				writer.AddAttribute(12, local0.ToString(NumberFormatInfo.InvariantInfo));
//			local0 = this.RowSpan;
//			if (local0 > 0)
//				writer.AddAttribute(26, local0.ToString(NumberFormatInfo.InvariantInfo));
		}

		protected override void AddParsedSubObject(object obj) 
		{
			string local0;

			if (this.HasControls()) 
			{
				this.AddParsedSubObject(obj);
				return;
			}
			if (obj as LiteralControl != null) 
			{
//				this.Text = (LiteralControl) obj.Text;
				return;
			}
			local0 = this.Text;
			if (local0.Length != 0) 
			{
				this.Text = System.String.Empty;
				this.AddParsedSubObject(new LiteralControl(local0));
			}
			this.AddParsedSubObject(obj);
		}

		protected virtual Style CreateControlStyle() 
		{
			throw new Exception("");
//			return new TableItemStyle(this.ViewState);
		}

		protected virtual void RenderContents(HtmlTextWriter writer) 
		{
//			if (this.HasRenderingData()) 
//			{
//				this.RenderContents(writer);
//				return;
//			}
//			writer.Write(this.Text);
		}

		
		public virtual int ColumnSpan
		{
			get
			{
				object local0;

				local0 = this.ViewState["ColumnSpan"];
				if (local0 != null)
					return (Int32) local0;
				return 0;
			}
			set
			{
				if (value < 0)
					throw new ArgumentOutOfRangeException("value");
				this.ViewState["ColumnSpan"]= value;
			}
		}

		public virtual HorizontalAlign HorizontalAlign
		{
			get
			{
				throw new Exception("");
//				if (!(this.ControlStyleCreated))
//					return 0;
//				return (TableItemStyle) this.ControlStyle.HorizontalAlign;
			}
			set
			{
//				(TableItemStyle) this.ControlStyle.HorizontalAlign = value;
			}
		}

		
		public virtual int RowSpan
		{
			get
			{
				object local0;

				local0 = this.ViewState["RowSpan"];
				if (local0 != null)
					return (Int32) local0;
				return 0;
			}
			set
			{
				if (value < 0)
					throw new ArgumentOutOfRangeException("value");
				this.ViewState["RowSpan"]= value;
			}
		}

		
		public virtual string Text
		{
			get
			{
				object local0;

				local0 = this.ViewState["Text"];
				if (local0 != null)
					return (String) local0;
				return System.String.Empty;
			}
			set
			{
				if (this.HasControls())
					this.Controls.Clear();
				this.ViewState["Text"]= value;
			}
		}

		
		public virtual VerticalAlign VerticalAlign
		{
			get
			{
				throw new Exception("");
//				if (!(this.ControlStyleCreated))
//					return 0;
//				return (TableItemStyle) this.ControlStyle.VerticalAlign;
			}
			set
			{
//				(TableItemStyle) this.ControlStyle.VerticalAlign = value;
			}
		}

		
		public virtual bool Wrap
		{
			get
			{
				throw new Exception("");
//				if (!(this.ControlStyleCreated))
//					return 1;
//				return (TableItemStyle) this.ControlStyle.Wrap;
			}
			set
			{
//				(TableItemStyle) this.ControlStyle.Wrap = value;
			}
		}

	}
}

⌨️ 快捷键说明

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