Version

Add(String,String,Boolean) Method

Adds custom string of style rules to the CSS registry.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal rules As String, _
   ByVal selector As String, _
   ByVal forceChurn As Boolean _
) As String
public string Add( 
   string rules,
   string selector,
   bool forceChurn
)

Parameters

rules
Custom string of style rules.
selector
Selector format that should be rendered for the style. Example: TBODY.{0} TR TD
forceChurn
Forces the registry to generate churn for the new CSS class regardless of whether it was registered in previous post backs.

Return Value

Automatically generated css class name.
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