![]() ![]() | ||
As discussed in the In Depth section, you use Image controls to display an image in a Web page. Here's the inheritance hierarchy for this class:
Object Control WebControl Image
You can find the notable public properties of Image objects in Table 17.1 (this class has no non-inherited methods or events). Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes—you can find them in Tables 15.1 to 15.5, Chapter 15.
Property |
Means |
---|---|
AlternateText |
Gets/sets the text to display in an Image control when the image is not available. Note also that in browsers that display tool tips, this text will become the tool tip text. |
Font |
Gets/sets the alternate text's font. |
ImageAlign |
Gets/sets the image alignment of the Image control (as set with regard to other HTML elements in the Web page). |
ImageUrl |
Gets/sets the URL of the image you want to display. |
![]() ![]() | ||