DekGenius.com
[ Team LiB ] Previous Section Next Section

Imagedisposable

System.Web.UI.WebControls (system.web.dll)class

This class represents an Image control on a Web Forms page, which is used to display any supported graphic (including .jpg, .bmp, .gif, and .png files). To specify the picture that should appear in this control, set a URL to the file by using the ImageUrl property. You can specify a string of AlternateText, which will be displayed in browsers that do not support graphics or if the picture file is not available. You can also set a Font for the alternate text. Many browsers also show this text as a tooltip when the user positions the mouse over the image.

An Image control cannot capture mouse clicks. To respond to image click events, use the ImageButton control instead.

public class Image : WebControl {
// Public Constructors
   public Image( );
// Public Instance Properties
   public virtual string AlternateText{set; get; }
   public override bool Enabled{set; get; }         // overrides WebControl
   public override FontInfo Font{get; }             // overrides WebControl
   public virtual ImageAlign ImageAlign{set; get; }
   public virtual string ImageUrl{set; get; }
// Protected Instance Methods
   protected override void AddAttributesToRender(System.Web.UI.HtmlTextWriter writer);   // overrides WebControl
   protected override void RenderContents(System.Web.UI.HtmlTextWriter writer);  // overrides WebControl
}

Hierarchy

System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) WebControl(System.Web.UI.IAttributeAccessor) Image

Subclasses

ImageButton

    [ Team LiB ] Previous Section Next Section