Search Results for

    Show / Hide Table of Contents

    Class ThemeManager

    Extension class for the Web object useful to apply custom Themes

    Inheritance
    System.Object
    ThemeManager
    Namespace: PnP.Framework.Utilities.Themes
    Assembly: PnP.Framework.dll
    Syntax
    public static class ThemeManager : object

    Methods

    ApplyTheme(Web, SharePointTheme, String)

    Extension method to apply OOTB SharePoint's theme to a target web

    Declaration
    public static Boolean ApplyTheme(this Web web, SharePointTheme sharePointTheme, string themeName = null)
    Parameters
    Web web

    SharePointTheme sharePointTheme

    System.String themeName

    Returns
    Boolean

    ApplyTheme(Web, String, String)

    Extension method to apply a Theme to a target web

    Declaration
    public static Boolean ApplyTheme(this Web web, String jsonTheme, String themeName = null)
    Parameters
    Web web

    String jsonTheme

    String themeName

    Returns
    Boolean

    ApplyThemeAsync(Web, String, String)

    Declaration
    public static async Task<Boolean> ApplyThemeAsync(Web web, String jsonTheme, String themeName = null)
    Parameters
    Web web

    String jsonTheme

    String themeName

    Returns
    Task<Boolean>

    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer