Version

InitializeStyle Method (WebAgent)

Initializes a style object with option to add it to CssBuilder. It is a wrapper for InitializeStyle(style, localAndSharedStyle, localAndSharedStyle, priority)
Overload List
OverloadDescription
InitializeStyle(Style,String,Int32)Initializes a style object with option to add it to CssBuilder. It is a wrapper for InitializeStyle(style, localAndSharedStyle, localAndSharedStyle, priority)  
InitializeStyle(Style,String,String,Int32)Initializes a style object with option to add it to CssBuilder.

If both roleName and baseRoleName are nulls (or empty strings) or EnableAppStylingResolved is false, then internalClassDefault is reset, but style is added to CssBuilder according to priority.

If priority is negative, then style is not added to CssBuilder.

 
InitializeStyle(Style,String,String,String,Int32)Initializes a style object with a literal selector.  
InitializeStyle(Style,String,String,String,Int32,String)Initializes a style object with a literal selector.  
InitializeStyle(Style,Int32)Add style to StyleRepo. It is designed for style which is not represented by css. For example items in collections which local style override a higher level default style.  
InitializeStyle(Style,Int32,String)Add style to StyleRepo. It is designed for style which is not represented by css. For example items in collections which local style override a higher level default style.  
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