# VisualFrame

Common title, subtitle, legend and surface configuration.

 Class  

`ChartForgeX.Rendering`

**Namespace**

`ChartForgeX.Rendering`

**Assembly**

`ChartForgeX`

**Source**

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

**Modifiers**

sealed

Common title, subtitle, legend and surface configuration.

## Inheritance

- object
- VisualFrame

## 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 [VisualRenderContext.Frame](/api/chartforgex-rendering-visualrendercontext/#property-frame)

### Accepted by parameters 1

- Constructor [VisualRenderContext.VisualRenderContext](/api/chartforgex-rendering-visualrendercontext/#constructor-ctor-chartforgex-rendering-visuallayoutoptions-chartforgex-themes-visualtheme-chartforgex-thememode-chartforgex-rendering-visualframe-chartforgex-typography-fontspec) parameter `frame`

 Filter members   

    Show inherited   

 

## Constructors

 `public VisualFrame(string? title = null, string? subtitle = null, bool? showLegend = null, ChartLegendPosition? legendPosition = null, bool showSurface = false, bool transparentBackground = false, TextStyle? titleStyle = null, TextStyle? subtitleStyle = null, TextStyle? legendStyle = null, int? legendMaximumRows = null, double legendMaximumHeightFraction = 0.35, bool showCard = false, string? legendTitle = null)` [#](#member-5e901d641f8677dd5fb2ea9f) 

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

Creates an immutable frame configuration.

Parameters

**title string? = null optional**

**subtitle string? = null optional**

**showLegend bool? = null optional**

**legendPosition ChartForgeX.Core.ChartLegendPosition? = null optional**

**showSurface bool = false optional**

**transparentBackground bool = false optional**

**titleStyle ChartForgeX.Typography.TextStyle? = null optional**

**subtitleStyle ChartForgeX.Typography.TextStyle? = null optional**

**legendStyle ChartForgeX.Typography.TextStyle? = null optional**

**legendMaximumRows int? = null optional**

**legendMaximumHeightFraction double = 0.35 optional**

**showCard bool = false optional**

**legendTitle string? = 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? Title { get; }` [#](#property-title) 

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

Gets the title.

 `public string? Subtitle { get; }` [#](#property-subtitle) 

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

Gets the subtitle.

 `public bool ShowLegend { get; }` [#](#property-showlegend) 

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

Gets the requested legend visibility. When omitted, the producer resolves its data-aware default.

 `public string? LegendTitle { get; }` [#](#property-legendtitle) 

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

Gets an optional measured heading above the legend entries. Null uses the producer's source title.

 `public ChartLegendPosition LegendPosition { get; }` [#](#property-legendposition) 

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

Gets the legend placement.

 `public bool ShowSurface { get; }` [#](#property-showsurface) 

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

Gets whether the content surface is filled.

 `public bool ShowCard { get; }` [#](#property-showcard) 

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

Gets whether the complete frame has an elevated card, independently of the content surface.

 `public bool TransparentBackground { get; }` [#](#property-transparentbackground) 

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

Gets whether the outer canvas has no background paint, for overlays and embedding.

 `public TextStyle? TitleStyle { get; }` [#](#property-titlestyle) 

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

Gets a defensive copy of the explicit heading typography.

 `public TextStyle? SubtitleStyle { get; }` [#](#property-subtitlestyle) 

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

Gets a defensive copy of the explicit subtitle typography.

 `public TextStyle? LegendStyle { get; }` [#](#property-legendstyle) 

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

Gets a defensive copy of the explicit legend typography.

 `public int? LegendMaximumRows { get; }` [#](#property-legendmaximumrows) 

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

Gets the additional legend row limit, including any overflow summary row. Null uses only the height budget.

 `public double LegendMaximumHeightFraction { get; }` [#](#property-legendmaximumheightfraction) 

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

Gets the maximum fraction of the full viewport height occupied by the legend and its spacing.

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