SPWeb.RevertCss method

Reverts style sheet customization of a file to the default style sheet.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub RevertCss ( _
    cssFile As String _
)
'Usage
Dim instance As SPWeb
Dim cssFile As String

instance.RevertCss(cssFile)
public void RevertCss(
    string cssFile
)

Parameters

  • cssFile
    Type: System.String

    The file name and extension of the cascading style sheets (CSS) file.

Exceptions

Exception Condition
SPException

The cssFile parameter does not contain the extension of a style sheet file (.css).

Remarks

This method does nothing if cssFile is null or empty.

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace