OfficeTheme
OfficeIMO
An immutable visual identity shared by document formats. Loading a document does not apply a theme.
Inheritance
- object
- OfficeTheme
Usage
Explore 19 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 18
- Method OfficeTheme.FromDocument
- Method OfficeTheme.WithChartStyle
- Method OfficeTheme.WithFonts
- Method OfficeTheme.WithFooter
- Method OfficeTheme.WithName
- Method OfficeTheme.WithPage
- Method OfficeTheme.WithPalette
- Method OfficeTheme.WithSpacing
- Method OfficeTheme.WithSurfaces
- Method OfficeTheme.WithTableStyle
- Method OfficeTheme.WithTextStyle
- Method OfficeTheme.WithTypeScale
- Property OfficeTheme.Boardroom
- Property OfficeTheme.Classic
- Property OfficeTheme.Dark
- Property OfficeTheme.Default
- Property OfficeTheme.Minimal
- Property OfficeTheme.Modern
Accepted by parameters 1
- Method OfficeColor.Resolve
Constructors
public OfficeTheme(string name, OfficeThemePalette palette, OfficeThemeFonts fonts, OfficeThemeTypeScale typeScale, OfficeThemeTableStyle tableStyle, OfficeThemeChartStyle chartStyle, OfficeThemeSpacing spacing) #Creates a theme from immutable palette, typography, table, chart and spacing components. Text style, surfaces, page margins and footer take the OfficeTheme.Modern treatment, with tints derived from palette.
Parameters
- name string
- palette OfficeIMO.OfficeThemePalette
- fonts OfficeIMO.OfficeThemeFonts
- typeScale OfficeIMO.OfficeThemeTypeScale
- tableStyle OfficeIMO.OfficeThemeTableStyle
- chartStyle OfficeIMO.OfficeThemeChartStyle
- spacing OfficeIMO.OfficeThemeSpacing
Methods
public static OfficeTheme FromDocument(string path) #Reads the colour scheme and Latin heading/body fonts from a Word, Excel or PowerPoint package.
Parameters
- path string
- Path to the document or template.
public OfficeTheme WithChartStyle(OfficeThemeChartStyle chartStyle) #Returns a theme with replacement chart styling.
Parameters
- chartStyle OfficeIMO.OfficeThemeChartStyle
Returns
OfficeThemepublic OfficeTheme WithFonts(OfficeThemeFonts fonts) #Returns a theme with replacement heading and body fonts.
Parameters
- fonts OfficeIMO.OfficeThemeFonts
Returns
OfficeThemepublic OfficeTheme WithName(string name) #Returns a theme with a new name.
Parameters
- name string
Returns
OfficeThemepublic OfficeTheme WithPage(OfficeThemePage page) #Returns a theme with replacement page margins.
Parameters
- page OfficeIMO.OfficeThemePage
Returns
OfficeThemepublic OfficeTheme WithPalette(OfficeThemePalette palette) #Returns a theme with a replacement palette.
Parameters
- palette OfficeIMO.OfficeThemePalette
Returns
OfficeThemepublic OfficeTheme WithSpacing(OfficeThemeSpacing spacing) #Returns a theme with replacement spacing.
Parameters
- spacing OfficeIMO.OfficeThemeSpacing
Returns
OfficeThemepublic OfficeTheme WithSurfaces(OfficeThemeSurfaces surfaces) #Returns a theme with replacement surface colours.
Parameters
- surfaces OfficeIMO.OfficeThemeSurfaces
Returns
OfficeThemepublic OfficeTheme WithTableStyle(OfficeThemeTableStyle tableStyle) #Returns a theme with replacement table styling.
Parameters
- tableStyle OfficeIMO.OfficeThemeTableStyle
Returns
OfficeThemepublic OfficeTheme WithTextStyle(OfficeThemeTextStyle textStyle) #Returns a theme with replacement text style.
Parameters
- textStyle OfficeIMO.OfficeThemeTextStyle
Returns
OfficeThemepublic OfficeTheme WithTypeScale(OfficeThemeTypeScale typeScale) #Returns a theme with replacement type sizes.
Parameters
- typeScale OfficeIMO.OfficeThemeTypeScale
Returns
OfficeThemeInherited Methods
Properties
public static OfficeTheme Modern { get; } #Gets a clean sans-serif theme with a cobalt accent and airy, tinted-header tables (the default).
public static OfficeTheme Classic { get; } #Gets a traditional serif document theme with navy headings and an ochre title rule.
public static OfficeTheme Minimal { get; } #Gets a restrained theme without fills whose fonts have metric-compatible open substitutes, so layout matches across office suites.
public static OfficeTheme Boardroom { get; } #Gets a formal theme with regular-weight serif headings, a gold rule and generous margins.
public static OfficeTheme Dark { get; } #Gets a screen theme with light text on a dark background; Word and Excel keep a light page.
public OfficeThemeSpacing Spacing { get; } #Gets paragraph, list and slide spacing.
public OfficeThemeTextStyle TextStyle { get; } #Gets line spacing, title, heading and link colours and heading spacing.
public OfficeThemeSurfaces Surfaces { get; } #Gets panel, hairline, accent-tint and status fills.
public bool IsDark { get; } #Gets whether the theme paints a dark background (used by screen formats; Word and Excel keep a light page).
public static OfficeTheme Default { get; } #Gets the default visual identity, OfficeTheme.Modern.