Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas N <andreas@mono-cvs.ximian.com>2003-07-30 22:18:28 +0400
committerAndreas N <andreas@mono-cvs.ximian.com>2003-07-30 22:18:28 +0400
commitbe498b8f4385822678094d3cede440f96b2d788f (patch)
treef8803731df8c84309f4868cdcf13777f1211e767 /mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs
parentf7821af4e3b06eb2881905182e26ad7eb37705a2 (diff)
2003-07-30 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* RequiredFieldValidator.cs: Added all attributes * Style.cs: Added all attributes * Table.cs: Added all attributes * TableCell.cs: Added all attributes, added error checks, throws more exceptions * TableCellCollection.cs: Added attribute * TableRow.cs: Added all attributes * TableRowCollection: Added attribute * TableStyle.cs: Added all attributes, improved error messages * TemplateColumn.cs: Added all attributes * TextBox.cs: Added all attributes, added error checks, throws more exceptions * ValidationSummary.cs: Added all attributes * WebControl.cs: Added all attributes * Xml.cs: Added all attributes svn path=/trunk/mcs/; revision=16907
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs55
1 files changed, 32 insertions, 23 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs b/mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs
index 6b1e7cd1415..a7b7f7ccde1 100644
--- a/mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs
+++ b/mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs
@@ -1,17 +1,16 @@
-/**
- * Namespace: System.Web.UI.WebControls
- * Class: TableStyle
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish@iitk.ac.in
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
- * Implementation: yes
- * Status: 100%
- *
- * (C) Gaurav Vaish (2002)
- */
+//
+// System.Web.UI.WebControls.TableStyle.cs
+//
+// Authors:
+// Gaurav Vaish (gvaish@iitk.ac.in)
+// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
-using System;
+using System;
+using System.ComponentModel;
using System.Globalization;
using System.Web;
using System.Web.UI;
@@ -33,7 +32,9 @@ namespace System.Web.UI.WebControls
public TableStyle(StateBag bag): base(bag)
{
}
-
+
+ [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+ [WebSysDescription ("An Url specifying the background image for the table.")]
public virtual string BackImageUrl
{
get
@@ -45,12 +46,14 @@ namespace System.Web.UI.WebControls
set
{
if(value == null)
- throw new ArgumentNullException("BackImageUrl");
+ throw new ArgumentNullException("value");
ViewState["BackImageUrl"] = value;
Set(IMAGE_URL);
}
}
-
+
+ [DefaultValue (-1), Bindable (true), WebCategory ("Appearance")]
+ [WebSysDescription ("The space left around the borders within a cell.")]
public virtual int CellPadding
{
get
@@ -62,12 +65,14 @@ namespace System.Web.UI.WebControls
set
{
if(value < -1)
- throw new ArgumentOutOfRangeException("CellPadding");
+ throw new ArgumentOutOfRangeException("value", "CellPadding value has to be -1 for 'not set' or a value >= 0");
ViewState["CellPadding"] = value;
Set(CELL_PADD);
}
}
-
+
+ [DefaultValue (-1), Bindable (true), WebCategory ("Appearance")]
+ [WebSysDescription ("The space left between cells.")]
public virtual int CellSpacing
{
get
@@ -79,12 +84,14 @@ namespace System.Web.UI.WebControls
set
{
if(value < -1)
- throw new ArgumentOutOfRangeException("CellSpacing");
+ throw new ArgumentOutOfRangeException("value"," CellSpacing value has to be -1 for 'not set' or a value >= 0");
ViewState["CellSpacing"] = value;
Set(CELL_SPAC);
}
}
-
+
+ [DefaultValue (typeof (GridLines), "None"), Bindable (true), WebCategory ("Appearance")]
+ [WebSysDescription ("The type of grid that a table uses.")]
public virtual GridLines GridLines
{
get
@@ -96,12 +103,14 @@ namespace System.Web.UI.WebControls
set
{
if(!Enum.IsDefined(typeof(GridLines), value))
- throw new ArgumentException();
+ throw new ArgumentOutOfRangeException("value"," Gridlines value has to be a valid enumeration member");
ViewState["GridLines"] = value;
Set(GRID_LINE);
}
}
-
+
+ [DefaultValue (typeof (HorizontalAlign), "NotSet"), Bindable (true), WebCategory ("Layout")]
+ [WebSysDescription ("The horizonal alignment of the table.")]
public virtual HorizontalAlign HorizontalAlign
{
get
@@ -113,7 +122,7 @@ namespace System.Web.UI.WebControls
set
{
if(!Enum.IsDefined(typeof(HorizontalAlign), value))
- throw new ArgumentException();
+ throw new ArgumentOutOfRangeException("value"," Gridlines value has to be a valid enumeration member");
ViewState["HorizontalAlign"] = value;
Set(HOR_ALIGN);
}