# OfficeDiagramStyle

Representable visual styling for a semantic Office diagram.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeDiagramSnapshot.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDiagramSnapshot.cs#L32)

**Modifiers**

sealed

Representable visual styling for a semantic Office diagram.

## Inheritance

- object
- OfficeDiagramStyle

## Usage

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

- Property [OfficeDiagramSnapshot.Style](/api/core/officeimo-drawing-officediagramsnapshot/#property-style)

### Accepted by parameters 1

- Constructor [OfficeDiagramSnapshot.OfficeDiagramSnapshot](/api/core/officeimo-drawing-officediagramsnapshot/#constructor-ctor-string-officeimo-drawing-officediagramkind-collections-generic-ienumerable-system-string-officeimo-officelength-officeimo-officelength-officeimo-drawing-officediagramstyle) parameter `style`

Filter members 

Show inherited

## Constructors

`public OfficeDiagramStyle(string fontFamily, IEnumerable<OfficeColor> nodeColors, OfficeColor nodeTextColor, OfficeColor nodeOutlineColor, OfficeColor connectorColor)` [#](#constructor-ctor-string-collections-generic-ienumerable-officeimo-officecolor-officeimo-officecolor-officeimo-officecolor-officeimo-officecolor)

[OfficeDiagramSnapshot.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDiagramSnapshot.cs#L32)

Creates a diagram style used by shared image and PDF renderers.

Parameters

**fontFamily string required**

**nodeColors System.Collections.Generic.IEnumerable<OfficeIMO.OfficeColor> required**

**nodeTextColor OfficeIMO.OfficeColor required**

**nodeOutlineColor OfficeIMO.OfficeColor required**

**connectorColor OfficeIMO.OfficeColor required**

## 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 string FontFamily { get; }` [#](#property-fontfamily)

[OfficeDiagramSnapshot.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDiagramSnapshot.cs#L53)

Gets the node-label font family.

`public IReadOnlyList<OfficeColor> NodeColors { get; }` [#](#property-nodecolors)

[OfficeDiagramSnapshot.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDiagramSnapshot.cs#L56)

Gets node fill colors, repeated when there are more nodes.

`public OfficeColor NodeTextColor { get; }` [#](#property-nodetextcolor)

[OfficeDiagramSnapshot.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDiagramSnapshot.cs#L59)

Gets the node-label color.

`public OfficeColor NodeOutlineColor { get; }` [#](#property-nodeoutlinecolor)

[OfficeDiagramSnapshot.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDiagramSnapshot.cs#L62)

Gets the node-outline color.

`public OfficeColor ConnectorColor { get; }` [#](#property-connectorcolor)

[OfficeDiagramSnapshot.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDiagramSnapshot.cs#L65)

Gets the connector color.

<!-- PowerForge markdown artifact sha256:4D872B26629FD9DE76E6F6C9BE37EA97FE3B8EE32E3E20244DF47C8BCE91E193 -->
