Html32TextWriter.RenderAfterContent Method ()

 

Writes any text or spacing that appears after the content of the HTML element.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

override RenderAfterContent : unit -> string

Return Value

Type: System.String

The spacing or text to write after the content of the HTML element; otherwise, if there is no such information to render, null.

The following code example demonstrates how to override the RenderAfterContent method. Each overridden method first checks whether a th element is being rendered, and then uses the SupportsBold method to check whether the requesting device can display bold formatting. If the device supports bold formatting, the RenderAfterContent method writes the closing tag of a b element. If the device does not support bold formatting, the RenderAfterContent method writes the closing tag of a font element.

Next, the code checks whether an h4 element is being rendered, and then uses the SupportsItalic property to check whether the requesting device can display italic formatting. If the device supports italic formatting, the RenderAfterContent method writes the closing tag of an i element. If the device does not support italic formatting, the RenderAfterContent method writes the closing tag of a font element.

This code example is part of a larger example provided for the Html32TextWriter class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: