TImage displays an image on the page. The path to the displayed image is specified by setting the ImageUrl property, which can be a relative local file path or a URL. You can specify the text to display in place of image when the image is not available by setting the AlternateText property. The alignment of the image in relation to other elements on the Web page is specified by setting ImageAlign property.
Note, this control only displays an image. If you need to capture mouse clicks on the image, use the TImageButton or TLinkButton components.
Note, AlternateText will be HTML encoded before it is displayed in the TTextBox component. If you don't want it to be so, set EncodeText to false.
Namespace: System.Web.UI.WebControls
Properties
AlternateText, string, kept in viewstate
Gets or sets the alternate text displayed in the TImage component
when the image is unavailable. Browsers that support the ToolTips feature
display this text as a ToolTip.
EncodeText, boolean, default=true, kept in viewstate
Gets or sets the value indicating whether AlternateText should be HTML-encoded when rendering.
ImageAlign, string, kept in viewstate
Gets or sets the alignment of the TImage component in relation to other elements on the Web page.
Valid values include 'left', 'right', 'baseline', 'top', 'middle', 'bottom', 'absbottom', 'absmiddle', 'texttop'.
TImage will not check the validity of this value.
ImageUrl, string, kept in viewstate
Gets or sets the location of an image to display in the TImage component.
Border, integer, default=0, kept in viewstate
Gets or sets the border width of the TImage component.
Examples
On a page template file, insert the following line to create a TImage component,