SPWeb.Theme Property

Gets the name of the theme that is applied to the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property Theme As String
    Get
'Usage
Dim instance As SPWeb
Dim value As String

value = instance.Theme
public string Theme { get; }

Property Value

Type: System.String
A string that contains the name of the theme.

Remarks

Warning

This API is deprecated; use it only when the UI is in backward compatibility mode (SPWeb.UIVersion = 3).

Use the ApplyTheme method to set the theme for a site.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace