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:
authorMarek Habersack <grendel@twistedcode.net>2010-04-03 04:25:13 +0400
committerMarek Habersack <grendel@twistedcode.net>2010-04-03 04:25:13 +0400
commitdd0fe784188aa905c47fce355f2a8573dc5a8c6a (patch)
treec831c34026eb2e1b7547506746938da74ac0f67f /mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlImage.cs
parentb1bbc5ad14d35acbf6f68fa8139533d8634e899e (diff)
Removed another batch of pre 2.0 code + some cosmetics
svn path=/trunk/mcs/; revision=154746
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlImage.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlImage.cs30
1 files changed, 7 insertions, 23 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlImage.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlImage.cs
index eb91a5baa58..871e22e6ad9 100644
--- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlImage.cs
+++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlImage.cs
@@ -4,7 +4,7 @@
// Author:
// Dick Porter <dick@ximian.com>
//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -37,11 +37,7 @@ namespace System.Web.UI.HtmlControls
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
// attributes
-#if NET_2_0
[ControlBuilder (typeof (HtmlEmptyTagControlBuilder))]
-#else
- [ControlBuilder (typeof (HtmlControlBuilder))]
-#endif
public class HtmlImage : HtmlControl
{
public HtmlImage () : base ("img")
@@ -52,8 +48,7 @@ namespace System.Web.UI.HtmlControls
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[WebSysDescription("")]
[WebCategory("Layout")]
- public string Align
- {
+ public string Align {
get {
string align = Attributes["align"];
@@ -76,11 +71,8 @@ namespace System.Web.UI.HtmlControls
[WebSysDescription("")]
[WebCategory("Appearance")]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
-#if NET_2_0
[Localizable (true)]
-#endif
- public string Alt
- {
+ public string Alt {
get {
string alt = Attributes["alt"];
@@ -103,8 +95,7 @@ namespace System.Web.UI.HtmlControls
[WebSysDescription("")]
[WebCategory("Appearance")]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
- public int Border
- {
+ public int Border {
get {
string border = Attributes["border"];
@@ -127,8 +118,7 @@ namespace System.Web.UI.HtmlControls
[WebSysDescription("")]
[WebCategory("Layout")]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
- public int Height
- {
+ public int Height {
get {
string height = Attributes["height"];
@@ -151,11 +141,8 @@ namespace System.Web.UI.HtmlControls
[WebSysDescription("")]
[WebCategory("Behavior")]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
-#if NET_2_0
[UrlProperty]
-#endif
- public string Src
- {
+ public string Src {
get {
string src = Attributes["src"];
@@ -178,8 +165,7 @@ namespace System.Web.UI.HtmlControls
[WebSysDescription("")]
[WebCategory("Layout")]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
- public int Width
- {
+ public int Width {
get {
string width = Attributes["width"];
@@ -221,5 +207,3 @@ namespace System.Web.UI.HtmlControls
}
}
}
-
-