SPTheme.Open method (String, 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 _
) As SPTheme
'Usage
Dim name As String
Dim colorPaletteFile As SPFile
Dim returnValue As SPTheme
returnValue = SPTheme.Open(name, colorPaletteFile)
public static SPTheme Open(
string name,
SPFile colorPaletteFile
)
Parameters
name
Type: System.StringThe name of the theme.
colorPaletteFile
Type: Microsoft.SharePoint.SPFileAn SPFile object for the color palette to use in the theme.
Return value
Type: Microsoft.SharePoint.Utilities.SPTheme
An SPTheme object.