Version

Render Method (UIElement)

Renders the current UIElement to the specified HtmlTextWriter instance.
Syntax
'Declaration
 
Public Overridable Sub Render( _
   ByVal sink As HtmlTextWriter _
) 
public virtual void Render( 
   HtmlTextWriter sink
)

Parameters

sink
An HtmlTextWriter instance into which markup will be deposited as this UIElement instance, and the child UIElement instances composing it render themselves.
Remarks

By default, this Render method doesn't emit any markup. It only iterates through its collection of child UIElement instances within the scene graph and asks them to render their markup, if any.

Inheritors wishing for their Render method to produce markup must override this method and furnish their own implementation to produce the markup that their UIElement instance adds to the composition. For child UIElement instances to properly receive the command to render themselves, the overridden method MUST call the base class' Render method, or dispatch calls to the Render methods of its children on its own.

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