Метод 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.StringThe server-relative URL of the color palette file.
fontSchemeUrl
Тип: System.StringThe server-relative URL of the font scheme, or пустая ссылка (Nothing в Visual Basic) for no font scheme.
backgroundImageUrl
Тип: System.StringThe server-relative URL of the background image, or пустая ссылка (Nothing в Visual Basic) for no background image.
shareGenerated
Тип: System.Booleantrue if the generated theme files should be placed in the root web, false to store them in this web.