Version

InitializeStyle(Style,String,Int32) Method

Initializes a style object with option to add it to CssBuilder. It is a wrapper for InitializeStyle(style, localAndSharedStyle, localAndSharedStyle, priority)
Syntax
'Declaration
 
Public Overloads Sub InitializeStyle( _
   ByVal style As Style, _
   ByVal localAndSharedStyle As String, _
   ByVal priority As Integer _
) 
public void InitializeStyle( 
   Style style,
   string localAndSharedStyle,
   int priority
)

Parameters

style
Instance of Style. Validation for null is built-in
localAndSharedStyle
Name of style used by control and the name of shared style. It should be a constant defined in CssNames which starts with prefix "Shared_" and "YourControl_" also should have corresponding css.
priority
Priority of style. In order to initialize only without adding style to CssBuilder, a negative value should be used.
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