Web.ApplyTheme 方法
套用到此網站的佈景主題與指定的元件。
命名空間: 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調色盤檔案伺服器相對 URL。
fontSchemeUrl
類型:System.String伺服器相對 URL 的字型配置或null 參考 (未執行任何動作 於 Visual Basic 中)沒有字型配置。
backgroundImageUrl
類型:System.String伺服器相對的背景圖像或null 參考 (未執行任何動作 於 Visual Basic 中)沒有背景圖像的 URL。
shareGenerated
類型:System.Booleantrue如果產生的佈景主題檔案應放置在根 web, false將它們儲存在這個網站。