# VisualDiagnostic

An immutable preparation observation with a stable machine-readable code.

 Class  

`ChartForgeX.Rendering`

**Namespace**

`ChartForgeX.Rendering`

**Assembly**

`ChartForgeX`

**Source**

[PreparedVisual.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/PreparedVisual.cs#L15)

**Modifiers**

sealed

An immutable preparation observation with a stable machine-readable code.

## Inheritance

- object
- VisualDiagnostic

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

- Property [PreparedChartXZoom.Diagnostics](/api/chartforgex-rendering-preparedchartxzoom/#property-diagnostics)
- Property [PreparedVisual.Diagnostics](/api/chartforgex-rendering-preparedvisual/#property-diagnostics)

 Filter members   

    Show inherited   

 

## Constructors

 `public VisualDiagnostic(string code, string message, VisualDiagnosticSeverity severity = Warning)` [#](#constructor-ctor-string-string-chartforgex-diagnostics-visualdiagnosticseverity) 

[PreparedVisual.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/PreparedVisual.cs#L15)

Creates a diagnostic.

Parameters

**code string required**

**message string required**

**severity ChartForgeX.Diagnostics.VisualDiagnosticSeverity = Warning 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 Code { get; }` [#](#property-code) 

[PreparedVisual.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/PreparedVisual.cs#L22)

Gets the stable code.

 `public string Message { get; }` [#](#property-message) 

[PreparedVisual.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/PreparedVisual.cs#L24)

Gets the human-readable message.

 `public VisualDiagnosticSeverity Severity { get; }` [#](#property-severity) 

[PreparedVisual.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/PreparedVisual.cs#L26)

Gets the severity.

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