Version

RenderStyle(HtmlTextWriter,String) Method

Renders a repository-managed structural style to HTML as either an in-line style or CSS class attribute.
Syntax
'Declaration
 
Protected Overloads Sub RenderStyle( _
   ByVal sink As HtmlTextWriter, _
   ByVal structuralKey As String _
) 
protected void RenderStyle( 
   HtmlTextWriter sink,
   string structuralKey
)

Parameters

sink
Where to write the HTML.
structuralKey
A string identifying the structural style, this must be the same key that was used when the structural style was registered within the SmartRenderer, typically as part of it's InitializeStyles method.
Remarks

Structural styles are those that are required to enforce the desired layout of the view element (for example, to have a regular proportionately-spaced grid layout). These styles are not alterable through the designer and typically must not be overridden, otherwise changes may interfere with the functionality of the view element.

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