This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Adds the given style to the element, either by adding a style rule to the 'css' placeholder or by ading an inline style attribute.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[]
public static string Style(
	 context,
	string elementId,
	string cssText
)
Visual Basic (Declaration)Copy imageCopy Code
<> _
Public Shared Function Style ( _
	context As , _
	elementId As , _
	cssText As  _
) As 

Parameters

context
RenderContext
The context.
elementId
String
The element id.
cssText
String
The CSS text.

Return Value

Inline style attribute (if the 'css' placeholder does not exist) or an empty string.

See Also

Advanced