# VisualRenderContext

A complete immutable request for shared static rendering.

 Class  

`ChartForgeX.Rendering`

**Namespace**

`ChartForgeX.Rendering`

**Assembly**

`ChartForgeX`

**Source**

[VisualRenderContext.cs:127](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L127)

**Modifiers**

sealed

A complete immutable request for shared static rendering.

## Inheritance

- object
- VisualRenderContext

## Usage

 Explore 25 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.

### Accepted by parameters 25

- Method [Chart.Prepare](/api/chartforgex-core-chart/#method-prepare-chartforgex-rendering-visualrendercontext) parameter `context`
- Method [Chart.PrepareHierarchy](/api/chartforgex-core-chart/#method-preparehierarchy-chartforgex-rendering-visualrendercontext-chartforgex-core-charthierarchyview) parameter `context`
- Method [Chart.PreparePolar](/api/chartforgex-core-chart/#method-preparepolar-chartforgex-rendering-visualrendercontext-chartforgex-core-chartpolarviewport) parameter `context`
- Method [Chart.PrepareStrip](/api/chartforgex-core-chart/#method-preparestrip-chartforgex-rendering-visualrendercontext-chartforgex-core-chartstripscale) parameter `context`
- Method [Chart.PrepareVisibility](/api/chartforgex-core-chart/#method-preparevisibility-chartforgex-rendering-visualrendercontext-chartforgex-core-chartvisibilityview-chartforgex-core-chartcartesianviewport) parameter `context`
- Method [Chart.PrepareXZoom](/api/chartforgex-core-chart/#method-preparexzoom-chartforgex-rendering-visualrendercontext-chartforgex-core-chartxzoomlevels) parameter `context`
- Method [ChartGrid.Prepare](/api/chartforgex-core-chartgrid/#method-prepare-chartforgex-rendering-visualrendercontext) parameter `context`
- Method [ChartStripScale.PrepareAxis](/api/chartforgex-core-chartstripscale/#method-prepareaxis-chartforgex-rendering-visualrendercontext) parameter `context`
- Method [Sparkline.Prepare](/api/chartforgex-core-sparkline/#method-prepare-chartforgex-rendering-visualrendercontext) parameter `context`
- Method [VisualTurbulence.Prepare](/api/chartforgex-effects-visualturbulence/#method-prepare-chartforgex-rendering-visualrendercontext) parameter `context`
- Method [HtmlSequenceNavigation.ToNavigationHtmlPage](/api/chartforgex-interactivity-html-htmlsequencenavigation/#method-tonavigationhtmlpage-chartforgex-visualartifacts-sequenceartifact-chartforgex-interactivity-html-htmlsequencenavigationoptions-chartforgex-rendering-visualrendercontext) parameter `context`
- Method [InteractiveDiagramExtensions.ToInteractiveHtmlFragment](/api/chartforgex-interactivity-html-interactivediagramextensions/#method-tointeractivehtmlfragment-chartforgex-visualartifacts-sequenceartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) parameter `context`
- Method [InteractiveDiagramExtensions.ToInteractiveHtmlPage](/api/chartforgex-interactivity-html-interactivediagramextensions/#method-tointeractivehtmlpage-chartforgex-visualartifacts-sequenceartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) parameter `context`
- Method [IVisualRenderable.Prepare](/api/chartforgex-rendering-ivisualrenderable/#method-prepare-chartforgex-rendering-visualrendercontext) parameter `context`
- Method [TopologyChart.Prepare](/api/chartforgex-topology-topologychart/#method-prepare-chartforgex-rendering-visualrendercontext) parameter `context`
- Method [TopologyChart.PrepareHierarchy](/api/chartforgex-topology-topologychart/#method-preparehierarchy-chartforgex-rendering-visualrendercontext-chartforgex-topology-topologyhierarchyview-chartforgex-topology-topologyrenderoptions) parameter `context`
- Extension method [FlowArtifact.ToInteractiveHtmlFragment](/api/chartforgex-visualartifacts-flowartifact/#extension-tointeractivehtmlfragment-chartforgex-visualartifacts-flowartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) parameter `context`
- Extension method [FlowArtifact.ToInteractiveHtmlPage](/api/chartforgex-visualartifacts-flowartifact/#extension-tointeractivehtmlpage-chartforgex-visualartifacts-flowartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) parameter `context`
- Method [FlowArtifact.Prepare](/api/chartforgex-visualartifacts-flowartifact/#method-prepare-chartforgex-rendering-visualrendercontext) parameter `context`
- Extension method [SequenceArtifact.ToInteractiveHtmlFragment](/api/chartforgex-visualartifacts-sequenceartifact/#extension-tointeractivehtmlfragment-chartforgex-visualartifacts-sequenceartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) parameter `context`
- Extension method [SequenceArtifact.ToInteractiveHtmlPage](/api/chartforgex-visualartifacts-sequenceartifact/#extension-tointeractivehtmlpage-chartforgex-visualartifacts-sequenceartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) parameter `context`
- Extension method [SequenceArtifact.ToNavigationHtmlPage](/api/chartforgex-visualartifacts-sequenceartifact/#extension-tonavigationhtmlpage-chartforgex-visualartifacts-sequenceartifact-chartforgex-interactivity-html-htmlsequencenavigationoptions-chartforgex-rendering-visualrendercontext) parameter `context`
- Method [SequenceArtifact.Prepare](/api/chartforgex-visualartifacts-sequenceartifact/#method-prepare-chartforgex-rendering-visualrendercontext) parameter `context`
- Extension method [VisualArtifactInterchangeEnvelope.PrepareTurbulenceSource](/api/chartforgex-visualartifacts-visualartifactinterchangeenvelope/#extension-prepareturbulencesource-chartforgex-visualartifacts-visualartifactinterchangeenvelope-chartforgex-rendering-visualrendercontext) parameter `context`
- Method [VisualArtifactInterchangeMapping.PrepareTurbulenceSource](/api/chartforgex-visualartifacts-visualartifactinterchangemapping/#method-prepareturbulencesource-chartforgex-visualartifacts-visualartifactinterchangeenvelope-chartforgex-rendering-visualrendercontext) parameter `context`

 Filter members   

    Show inherited   

 

## Constructors

 `public VisualRenderContext(VisualLayoutOptions? layout = null, VisualTheme? theme = null, ThemeMode themeMode = Light, VisualFrame? frame = null, FontSpec? font = null)` [#](#constructor-ctor-chartforgex-rendering-visuallayoutoptions-chartforgex-themes-visualtheme-chartforgex-thememode-chartforgex-rendering-visualframe-chartforgex-typography-fontspec) 

[VisualRenderContext.cs:127](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L127)

Creates a context with the canonical paired palette and Graphite geometry by default.

Parameters

**layout ChartForgeX.Rendering.VisualLayoutOptions? = null optional**

**theme ChartForgeX.Themes.VisualTheme? = null optional**

**themeMode ChartForgeX.ThemeMode = Light optional**

**frame ChartForgeX.Rendering.VisualFrame? = null optional**

**font ChartForgeX.Typography.FontSpec? = 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 VisualLayoutOptions Layout { get; }` [#](#property-layout) 

[VisualRenderContext.cs:165](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L165)

Gets the resolved layout.

 `public VisualTheme Theme { get; }` [#](#property-theme) 

[VisualRenderContext.cs:167](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L167)

Gets the paired theme.

 `public ThemeMode ThemeMode { get; }` [#](#property-thememode) 

[VisualRenderContext.cs:169](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L169)

Gets the selected palette mode. Static rendering resolves [ThemeMode.Auto](/api/chartforgex-thememode/) to [ThemeMode.Light](/api/chartforgex-thememode/).

 `public VisualFrame Frame { get; }` [#](#property-frame) 

[VisualRenderContext.cs:171](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L171)

Gets the common frame.

 `public FontSpec Font { get; }` [#](#property-font) 

[VisualRenderContext.cs:173](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L173)

Gets an independent copy of the font request.

<!-- PowerForge markdown artifact sha256:8817226E02C28EAACF8A02239D4058ACBA9651A5BFE1BFFC565956E9E97CEE3E -->
