Share via


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

Exceptions

Exception Condition
InvalidOperationException

The theme file is invalid.

Remarks

The old theme files are deleted if they are not shared.

See also

Reference

ThmxTheme class

ThmxTheme members

ApplyTo overload

Microsoft.SharePoint.Utilities namespace