ThmxTheme.ApplyTo method (String)
Applies the current theme to the given Cascading Style Sheet (CSS) file.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub ApplyTo ( _
cssUrl As String _
)
'Usage
Dim instance As ThmxTheme
Dim cssUrl As String
instance.ApplyTo(cssUrl)
public void ApplyTo(
string cssUrl
)
Parameters
cssUrl
Type: System.StringThe URL to the CSS file.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The theme file is invalid. |
Remarks
The old theme files are deleted if they are not shared.