Freigeben über


Web.ApplyTheme-Methode

Applies a theme with the specified components to this site.

Namespace:  Microsoft.SharePoint.Client
Assemblys:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Sub ApplyTheme ( _
    colorPaletteUrl As String, _
    fontSchemeUrl As String, _
    backgroundImageUrl As String, _
    shareGenerated As Boolean _
)
'Usage
Dim instance As Web
Dim colorPaletteUrl As String
Dim fontSchemeUrl As String
Dim backgroundImageUrl As String
Dim shareGenerated As Boolean

instance.ApplyTheme(colorPaletteUrl, _
    fontSchemeUrl, backgroundImageUrl, _
    shareGenerated)
public void ApplyTheme(
    string colorPaletteUrl,
    string fontSchemeUrl,
    string backgroundImageUrl,
    bool shareGenerated
)

Parameter

  • colorPaletteUrl
    Typ: System.String

    The server-relative URL of the color palette file.

  • fontSchemeUrl
    Typ: System.String

    The server-relative URL of the font scheme, or ein Nullverweis (Nothing in Visual Basic) for no font scheme.

  • backgroundImageUrl
    Typ: System.String

    The server-relative URL of the background image, or ein Nullverweis (Nothing in Visual Basic) for no background image.

  • shareGenerated
    Typ: System.Boolean

    true if the generated theme files should be placed in the root web, false to store them in this web.

Siehe auch

Referenz

Web Klasse

Web-Member

Microsoft.SharePoint.Client-Namespace