mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* System.Web/HttpResponse.cs: * System.Web.SessionState/HttpSessionState.cs: * System.Web.UI/LiteralControl.cs: * System.Web.UI.HtmlControls/HtmlAnchor.cs: * System.Web.UI.HtmlControls/HtmlButton.cs: * System.Web.UI.HtmlControls/HtmlControl.cs: * System.Web.UI.HtmlControls/HtmlForm.cs: * System.Web.UI.HtmlControls/HtmlGenericControl.cs: * System.Web.UI.HtmlControls/HtmlInputButton.cs: * System.Web.UI.HtmlControls/HtmlInputCheckBox.cs: * System.Web.UI.HtmlControls/HtmlInputControl.cs: * System.Web.UI.HtmlControls/HtmlInputFile.cs: * System.Web.UI.HtmlControls/HtmlInputHidden.cs: * System.Web.UI.HtmlControls/HtmlInputImage.cs: * System.Web.UI.HtmlControls/HtmlInputRadioButton.cs: * System.Web.UI.HtmlControls/HtmlInputText.cs: * System.Web.UI.HtmlControls/HtmlSelect.cs: * System.Web.UI.HtmlControls/HtmlTable.cs: * System.Web.UI.HtmlControls/HtmlTableCell.cs: * System.Web.UI.HtmlControls/HtmlTableRow.cs: * System.Web.UI.HtmlControls/HtmlTextArea.cs: Fixes based on class status page: - Add attributes (DefaultEvent, ParseChildren). - Fix declarations. - Explicitly implement some interfaces (IPostBackDataHandler and IPostBackEventHandler). - Implemented some missing methods. svn path=/trunk/mcs/; revision=5506
131 lines
2.7 KiB
C#
Executable File
131 lines
2.7 KiB
C#
Executable File
/* System.Web.UI.HtmlControls
|
|
* Authors
|
|
* Leen Toelen ([email protected])
|
|
*/
|
|
|
|
using System;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Globalization;
|
|
|
|
namespace System.Web.UI.HtmlControls{
|
|
[ConstructorNeedsTag]
|
|
public class HtmlTableCell : HtmlContainerControl {
|
|
public HtmlTableCell(): base("td"){}
|
|
|
|
public HtmlTableCell(string tagName): base(tagName){}
|
|
|
|
protected override void RenderEndTag(HtmlTextWriter writer){
|
|
base.RenderEndTag(writer);
|
|
writer.WriteLine();
|
|
}
|
|
|
|
public string Align {
|
|
get{
|
|
string attr = Attributes["align"];
|
|
if (attr != null) return attr;
|
|
return String.Empty;
|
|
}
|
|
set{
|
|
Attributes["align"] = AttributeToString(value);
|
|
}
|
|
}
|
|
|
|
public string BgColor {
|
|
get{
|
|
string attr = Attributes["bgcolor"];
|
|
if (attr != null) return attr;
|
|
return String.Empty;
|
|
}
|
|
set{
|
|
Attributes["bgcolor"] = AttributeToString(value);
|
|
}
|
|
}
|
|
|
|
public string BorderColor {
|
|
get{
|
|
string attr = Attributes["bordercolor"];
|
|
if (attr != null) return attr;
|
|
return String.Empty;
|
|
}
|
|
set{
|
|
Attributes["bordercolor"] = AttributeToString(value);
|
|
}
|
|
}
|
|
|
|
public int ColSpan {
|
|
get{
|
|
string attr = Attributes["colspan"];
|
|
if (attr != null) return Int32.Parse(attr, CultureInfo.InvariantCulture);
|
|
return -1;
|
|
}
|
|
set{
|
|
Attributes["colspan"] = AttributeToString(value);
|
|
}
|
|
}
|
|
|
|
public string Height {
|
|
get{
|
|
string attr = Attributes["height"];
|
|
if (attr != null) return attr;
|
|
return String.Empty;
|
|
}
|
|
set{
|
|
Attributes["height"] = AttributeToString(value);
|
|
}
|
|
}
|
|
|
|
public bool NoWrap {
|
|
get{
|
|
string attr = Attributes["colspan"];
|
|
if (attr != null) return attr.Equals("nowrap");
|
|
return false;
|
|
}
|
|
set{
|
|
if (value == true){
|
|
Attributes["nowrap"] = "nowrap";
|
|
}
|
|
else{
|
|
Attributes["nowrap"] = null;
|
|
}
|
|
}
|
|
}
|
|
|
|
public int RowSpan {
|
|
get{
|
|
string attr = Attributes["rowspan"];
|
|
if (attr != null) return Int32.Parse(attr, CultureInfo.InvariantCulture);
|
|
return -1;
|
|
}
|
|
set{
|
|
Attributes["rowspan"] = AttributeToString(value);
|
|
}
|
|
}
|
|
|
|
public string VAlign {
|
|
get{
|
|
string attr = Attributes["valign"];
|
|
if (attr != null) return attr;
|
|
return String.Empty;
|
|
}
|
|
set{
|
|
Attributes["valign"] = AttributeToString(value);
|
|
}
|
|
}
|
|
|
|
public string Width {
|
|
get{
|
|
string attr = Attributes["width"];
|
|
if (attr != null) return attr;
|
|
return String.Empty;
|
|
}
|
|
set{
|
|
Attributes["width"] = AttributeToString(value);
|
|
}
|
|
}
|
|
|
|
}
|
|
// System.Web.UI.HtmlControls.HtmlTableCell
|
|
|
|
}
|