JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the HtmlImage Class

Gives you access to HTML <img> elements in server code. Here is the inheritance hierarchy of this class:

Object
   Control
      HtmlControl
         HtmlImage

You can find the notable public properties of HtmlImage objects in Table 19.20. (This class has no non-inherited methods or events.) Note that as with other HTML server controls, I am not listing the notable properties, methods, and events this class inherits from the Control class; you can find them in Chapter 15, Tables 15.1 to 15.3. This class also inherits the HtmlControl class; you can find that class in Table 19.2.

Table 19.20: Noteworthy public properties of HtmlImage objects.

Property

Means

Align

Gets/sets the image's alignment with respect to other HTML elements.

Alt

Gets/sets the alternative text to display if an image cannot be displayed.

Border

Gets/sets the width of the image's border.

Height

Gets/sets the image's height.

Src

Gets/sets the URL of the image.

Width

Gets/sets the image's width.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor