Dynamicweb.Frontend Namespace > PageView Class > AddStylesheet Method : AddStylesheet(String,String) Method |
print, screen, tv, all
or other valid css media type. Default is string.empty
.
'Declaration
Public Overloads Sub AddStylesheet( _ ByVal stylesheet As String, _ ByVal media As String _ )
public void AddStylesheet( string stylesheet, string media )
print, screen, tv, all
or other valid css media type. Default is string.empty
.PageView.Current().AddStylesheet("/Files/System/MyCss.css", "print");
PageView.Current.AddStylesheet("/Files/System/MyCss.css", "print")
Target Platforms: 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