Share via


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

  • backgroundImageUri
    Type: System.Uri

    The Uri to the background image file to use in the theme.

Return value

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

See also

Reference

SPTheme class

SPTheme members

Open overload

Microsoft.SharePoint.Utilities namespace