📄 htmltablecell.cs
字号:
using System;
using System.Web.UI;
using System.Globalization;
namespace System.Web.UI.HtmlControls
{
/// <summary>
/// Summary description for HtmlTableCell.
/// </summary>
//.custom instance void System.Web.UI.ConstructorNeedsTagAttribute
public class HtmlTableCell : HtmlContainerControl
{
public HtmlTableCell(string tagName) : base(tagName)
{
}
public HtmlTableCell() : base("td")
{
}
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 int ColSpan
{
get
{
string local0;
local0 = this.Attributes["colspan"];
if (local0 == null)
return -1;
return System.Int32.Parse(local0, CultureInfo.InvariantCulture);
}
set
{
this.Attributes["colspan"]= System.Web.UI.HtmlControls.HtmlControl.MapIntegerAttributeToString(value);
}
}
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 bool NoWrap
{
get
{
string local0;
local0 = this.Attributes["nowrap"];
if (local0 == null)
return false;
return local0 == "nowrap";
}
set
{
if (value)
{
this.Attributes["nowrap"]= "nowrap";
return;
}
this.Attributes["nowrap"]= null;
}
}
public int RowSpan
{
get
{
string local0;
local0 = this.Attributes["rowspan"];
if (local0 == null)
return -1;
return System.Int32.Parse(local0, CultureInfo.InvariantCulture);
}
set
{
this.Attributes["rowspan"]= System.Web.UI.HtmlControls.HtmlControl.MapIntegerAttributeToString(value);
}
}
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);
}
}
public string Width
{
get
{
string local0;
local0 = this.Attributes["width"];
if (local0 == null)
return "";
return local0;
}
set
{
this.Attributes["width"]= System.Web.UI.HtmlControls.HtmlControl.MapStringAttributeToString(value);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -