# OfficeThemeSurfaces

Background tints and structural colours: panels, hairlines, the accent tint and status row fills.

Class 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`3e8c3385ff88` with working tree changes

**Source**

[OfficeThemeSurfaces.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/3e8c3385ff8885054f68f604e74abadf8ececc1b/OfficeIMO.Core/Themes/OfficeThemeSurfaces.cs#L19)

**Modifiers**

sealed

Background tints and structural colours: panels, hairlines, the accent tint and status row fills.

## Inheritance

- object
- OfficeThemeSurfaces

## 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 3

- Property [OfficeTheme.Surfaces](/api/core/officeimo-officetheme/#property-surfaces)
- Method [OfficeThemeSurfaces.FromPalette](/api/core/officeimo-officethemesurfaces/#method-frompalette-officeimo-officethemepalette-officeimo-officecolor-officeimo-officecolor)
- Method [OfficeThemeSurfaces.With](/api/core/officeimo-officethemesurfaces/#method-with-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor)

### Accepted by parameters 2

- Constructor [OfficeTheme.OfficeTheme](/api/core/officeimo-officetheme/#constructor-ctor-string-officeimo-officethemepalette-officeimo-officethemefonts-officeimo-officethemetypescale-officeimo-officethemetablestyle-officeimo-officethemechartstyle-officeimo-officethemespacing-officeimo-officethemetextstyle-officeimo-officethemesurfaces-officeimo-officethemepage-officeimo-officethemefooter) parameter `surfaces`
- Method [OfficeTheme.WithSurfaces](/api/core/officeimo-officetheme/#method-withsurfaces-officeimo-officethemesurfaces) parameter `surfaces`

Filter members 

Show inherited

## Constructors

`public OfficeThemeSurfaces(OfficeColor surface, OfficeColor rule, OfficeColor accent1Tint, OfficeColor successFill, OfficeColor warningFill, OfficeColor dangerFill)` [#](#constructor-ctor-officeimo-officecolor-officeimo-officecolor-officeimo-officecolor-officeimo-officecolor-officeimo-officecolor-officeimo-officecolor)

[OfficeThemeSurfaces.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/3e8c3385ff8885054f68f604e74abadf8ececc1b/OfficeIMO.Core/Themes/OfficeThemeSurfaces.cs#L19)

Creates immutable surface colours.

Parameters

**surface OfficeIMO.OfficeColor required**

**rule OfficeIMO.OfficeColor required**

**accent1Tint OfficeIMO.OfficeColor required**

**successFill OfficeIMO.OfficeColor required**

**warningFill OfficeIMO.OfficeColor required**

**dangerFill OfficeIMO.OfficeColor required**

## Methods

`public static OfficeThemeSurfaces FromPalette(OfficeThemePalette palette, OfficeColor surface, OfficeColor rule)` [#](#method-frompalette-officeimo-officethemepalette-officeimo-officecolor-officeimo-officecolor)

[OfficeThemeSurfaces.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/3e8c3385ff8885054f68f604e74abadf8ececc1b/OfficeIMO.Core/Themes/OfficeThemeSurfaces.cs#L33)

Derives the accent and status tints from a palette: Accent1 at 10 % and each status colour at 12 % (18 % on a dark background) composited over the background.

Parameters

**palette OfficeIMO.OfficeThemePalette required**

**surface OfficeIMO.OfficeColor required**

**rule OfficeIMO.OfficeColor required**

Returns

`OfficeThemeSurfaces`

`public OfficeThemeSurfaces With(OfficeColor? surface = null, OfficeColor? rule = null, OfficeColor? accent1Tint = null, OfficeColor? successFill = null, OfficeColor? warningFill = null, OfficeColor? dangerFill = null)` [#](#method-with-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officecolor)

[OfficeThemeSurfaces.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/3e8c3385ff8885054f68f604e74abadf8ececc1b/OfficeIMO.Core/Themes/OfficeThemeSurfaces.cs#L43)

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

Parameters

**surface OfficeIMO.OfficeColor? = null optional**

**rule OfficeIMO.OfficeColor? = null optional**

**accent1Tint OfficeIMO.OfficeColor? = null optional**

**successFill OfficeIMO.OfficeColor? = null optional**

**warningFill OfficeIMO.OfficeColor? = null optional**

**dangerFill OfficeIMO.OfficeColor? = null optional**

Returns

`OfficeThemeSurfaces`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeColor Surface { get; }` [#](#property-surface)

[OfficeThemeSurfaces.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/3e8c3385ff8885054f68f604e74abadf8ececc1b/OfficeIMO.Core/Themes/OfficeThemeSurfaces.cs#L6)

Gets the fill for panels, callouts and code blocks.

`public OfficeColor Rule { get; }` [#](#property-rule)

[OfficeThemeSurfaces.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/3e8c3385ff8885054f68f604e74abadf8ececc1b/OfficeIMO.Core/Themes/OfficeThemeSurfaces.cs#L8)

Gets the colour of hairlines and separators.

`public OfficeColor Accent1Tint { get; }` [#](#property-accent1tint)

[OfficeThemeSurfaces.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/3e8c3385ff8885054f68f604e74abadf8ececc1b/OfficeIMO.Core/Themes/OfficeThemeSurfaces.cs#L10)

Gets [OfficeColor.Accent1](/api/core/officeimo-officecolor/) at 10 % over the background.

`public OfficeColor SuccessFill { get; }` [#](#property-successfill)

[OfficeThemeSurfaces.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/3e8c3385ff8885054f68f604e74abadf8ececc1b/OfficeIMO.Core/Themes/OfficeThemeSurfaces.cs#L12)

Gets the row fill behind a success status.

`public OfficeColor WarningFill { get; }` [#](#property-warningfill)

[OfficeThemeSurfaces.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/3e8c3385ff8885054f68f604e74abadf8ececc1b/OfficeIMO.Core/Themes/OfficeThemeSurfaces.cs#L14)

Gets the row fill behind a warning status.

`public OfficeColor DangerFill { get; }` [#](#property-dangerfill)

[OfficeThemeSurfaces.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/3e8c3385ff8885054f68f604e74abadf8ececc1b/OfficeIMO.Core/Themes/OfficeThemeSurfaces.cs#L16)

Gets the row fill behind a danger status.

<!-- PowerForge markdown artifact sha256:507D015BD95366D27BD73515BE3EAC212E5FE7AA09828064318B94AA8B706E86 -->
