# OfficeDiagramSnapshot

Dependency-free semantic diagram data for static rendering and export.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

sealed

Dependency-free semantic diagram data for static rendering and export.

## Inheritance

- object
- OfficeDiagramSnapshot

Filter members 

Show inherited

## Constructors

`public OfficeDiagramSnapshot(string? name, OfficeDiagramKind kind, IEnumerable<string> nodes, OfficeLength width, OfficeLength height, OfficeDiagramStyle? style = null)` [#](#constructor-ctor-string-officeimo-drawing-officediagramkind-collections-generic-ienumerable-system-string-officeimo-officelength-officeimo-officelength-officeimo-drawing-officediagramstyle)

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

Creates a semantic diagram snapshot.

Parameters

**name string? required**

**kind OfficeIMO.Drawing.OfficeDiagramKind required**

**nodes System.Collections.Generic.IEnumerable<string> required**

**width OfficeIMO.OfficeLength required**

**height OfficeIMO.OfficeLength required**

**style OfficeIMO.Drawing.OfficeDiagramStyle? = null optional**

## 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? Name { get; }` [#](#property-name)

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

Gets the optional source diagram name.

`public OfficeDiagramKind Kind { get; }` [#](#property-kind)

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

Gets the semantic layout kind.

`public IReadOnlyList<string> Nodes { get; }` [#](#property-nodes)

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

Gets node labels in semantic order.

`public OfficeLength Width { get; }` [#](#property-width)

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

Gets the physical target width.

`public OfficeLength Height { get; }` [#](#property-height)

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

Gets the physical target height.

`public OfficeDiagramStyle? Style { get; }` [#](#property-style)

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

Gets optional visual styling projected from the source diagram.

<!-- PowerForge markdown artifact sha256:EB71F7CE4A6D2B6AD85324A45DA46689CCC8F96C5D74625E007159492113E0B5 -->
