SPTheme.Open method (String, SPFile, SPFile, Uri)
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, _
backgroundImageUri As Uri _
) As SPTheme
'Usage
Dim name As String
Dim colorPaletteFile As SPFile
Dim fontSchemeFile As SPFile
Dim backgroundImageUri As Uri
Dim returnValue As SPTheme
returnValue = SPTheme.Open(name, colorPaletteFile, _
fontSchemeFile, backgroundImageUri)
public static SPTheme Open(
string name,
SPFile colorPaletteFile,
SPFile fontSchemeFile,
Uri backgroundImageUri
)
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.
fontSchemeFile
Type: Microsoft.SharePoint.SPFileAn SPFile object for the font scheme to use in the theme.
backgroundImageUri
Type: System.UriThe Uri to the background image file to use in the theme.
Return value
Type: Microsoft.SharePoint.Utilities.SPTheme
An SPTheme object.