Web.ApplyTheme 方法

Applies a theme with the specified components to this site.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Sub ApplyTheme ( _
    colorPaletteUrl As String, _
    fontSchemeUrl As String, _
    backgroundImageUrl As String, _
    shareGenerated As Boolean _
)
用法
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
)

参数

  • colorPaletteUrl
    类型:System.String

    The server-relative URL of the color palette file.

  • fontSchemeUrl
    类型:System.String

    The server-relative URL of the font scheme, or 空引用(无 在 Visual Basic 中) for no font scheme.

  • backgroundImageUrl
    类型:System.String

    The server-relative URL of the background image, or 空引用(无 在 Visual Basic 中) for no background image.

  • shareGenerated
    类型:System.Boolean

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

另请参阅

引用

Web 类

Web 成员

Microsoft.SharePoint.Client 命名空间