Share via


SPTheme.Open method (String, SPFile, SPFile)

Opens an SPTheme file with the given name and color palette.

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

Syntax

'Declaration
Public Shared Function Open ( _
    name As String, _
    colorPaletteFile As SPFile, _
    fontSchemeFile As SPFile _
) As SPTheme
'Usage
Dim name As String
Dim colorPaletteFile As SPFile
Dim fontSchemeFile As SPFile
Dim returnValue As SPTheme

returnValue = SPTheme.Open(name, colorPaletteFile, _
    fontSchemeFile)
public static SPTheme Open(
    string name,
    SPFile colorPaletteFile,
    SPFile fontSchemeFile
)

Parameters

Return value

Type: Microsoft.SharePoint.Utilities.SPTheme
An SPTheme object.

See also

Reference

SPTheme class

SPTheme members

Open overload

Microsoft.SharePoint.Utilities namespace