Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeThemePalette

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Literal colors defining a document theme palette.

Inheritance

  • object
  • OfficeThemePalette

Usage

Explore 5 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 2

Accepted by parameters 3

Constructors

public OfficeThemePalette(OfficeColor background, OfficeColor text, OfficeColor textMuted, OfficeColor accent1, OfficeColor accent2, OfficeColor accent3, OfficeColor accent4, OfficeColor accent5, OfficeColor accent6, OfficeColor success, OfficeColor warning, OfficeColor danger) #

Creates immutable literal colors defining a document theme palette.

Parameters

background OfficeIMO.OfficeColor required
text OfficeIMO.OfficeColor required
textMuted OfficeIMO.OfficeColor required
accent1 OfficeIMO.OfficeColor required
accent2 OfficeIMO.OfficeColor required
accent3 OfficeIMO.OfficeColor required
accent4 OfficeIMO.OfficeColor required
accent5 OfficeIMO.OfficeColor required
accent6 OfficeIMO.OfficeColor required
success OfficeIMO.OfficeColor required
warning OfficeIMO.OfficeColor required
danger OfficeIMO.OfficeColor required

Methods

public OfficeThemePalette With(OfficeColor? background = null, OfficeColor? text = null, OfficeColor? textMuted = null, OfficeColor? accent1 = null, OfficeColor? accent2 = null, OfficeColor? accent3 = null, OfficeColor? accent4 = null, OfficeColor? accent5 = null, OfficeColor? accent6 = null, OfficeColor? success = null, OfficeColor? warning = null, OfficeColor? danger = null) #

Returns a copy with the supplied replacements; omitted values are retained.

Parameters

background OfficeIMO.OfficeColor? = null optional
text OfficeIMO.OfficeColor? = null optional
textMuted OfficeIMO.OfficeColor? = null optional
accent1 OfficeIMO.OfficeColor? = null optional
accent2 OfficeIMO.OfficeColor? = null optional
accent3 OfficeIMO.OfficeColor? = null optional
accent4 OfficeIMO.OfficeColor? = null optional
accent5 OfficeIMO.OfficeColor? = null optional
accent6 OfficeIMO.OfficeColor? = null optional
success OfficeIMO.OfficeColor? = null optional
warning OfficeIMO.OfficeColor? = null optional
danger OfficeIMO.OfficeColor? = null optional

Properties

public OfficeColor Background { get; } #

Gets the literal Background color.

public OfficeColor Text { get; } #

Gets the literal Text color.

public OfficeColor TextMuted { get; } #

Gets the literal TextMuted color.

public OfficeColor Accent1 { get; } #

Gets the literal Accent1 color.

public OfficeColor Accent2 { get; } #

Gets the literal Accent2 color.

public OfficeColor Accent3 { get; } #

Gets the literal Accent3 color.

public OfficeColor Accent4 { get; } #

Gets the literal Accent4 color.

public OfficeColor Accent5 { get; } #

Gets the literal Accent5 color.

public OfficeColor Accent6 { get; } #

Gets the literal Accent6 color.

public OfficeColor Success { get; } #

Gets the literal Success color.

public OfficeColor Warning { get; } #

Gets the literal Warning color.

public OfficeColor Danger { get; } #

Gets the literal Danger color.