Version

Render Method (SimpleBackgroundImage)

Uses the properties set on the SimpleBackgroundImage to write a background-image style attribute.
Syntax
'Declaration
 
Public Overrides Sub Render( _
   ByVal writer As HtmlTextWriter _
) 
public override void Render( 
   HtmlTextWriter writer
)

Parameters

writer
The HtmlTextWriter which will be used to append a background-image style attribute to the output stream.
Remarks

You must call Render on the SimpleBackgroundImage before you write any tags for the element that is to contain the background image, because the HtmlTextWriter applies all accumulated attributes to the element tag at the time you call RenderBeginTag on it.

Background images never use alternate text and must not be used to confer information you wish to be accessible to all audiences. The/ SimpleImage.AlternateText property is therefore ignored when rendering the background image.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also