Version

GetStyleBlock(Boolean) Method

Gets whole css block for the STYLE object. Note: that method ends up functionaly related to AppStyling. It can be used only if control is absolutely sure that it is the owner of postback and it will handle all css rendering. For example grid while it async postback may call it after WebAgent.HandleAppStylingRender
Syntax
'Declaration
 
Public Overloads Function GetStyleBlock( _
   ByVal clearStyles As Boolean _
) As StringBuilder
public StringBuilder GetStyleBlock( 
   bool clearStyles
)

Parameters

clearStyles

Return Value

Value similar to "\r\n\t.css1{values}\r\n\t.css2{values}\r\n\t etc." or null
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