# OfficeVisualDocumentStyle

Coordinates chart preparation and document text through a point-based typography scale.

Class 

`OfficeIMO.ChartForgeX`

**Namespace**

`OfficeIMO.ChartForgeX`

**Assembly**

`OfficeIMO.ChartForgeX`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[OfficeVisualDocumentStyle.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.ChartForgeX/OfficeVisualDocumentStyle.cs#L16)

**Modifiers**

sealed

Coordinates chart preparation and document text through a point-based typography scale.

## Inheritance

- object
- OfficeVisualDocumentStyle

## Remarks

Prepare at the intended placement size for readable labels. Resizing an already prepared artifact scales its text instead of reflowing it.

## Usage

Explore 1 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 [OfficeVisualDocumentStyle.Default](/api/chart-forge-x/officeimo-chartforgex-officevisualdocumentstyle/#property-default)

Filter members 

Show inherited

## Constructors

`public OfficeVisualDocumentStyle(string fontFamily = "Arial", double headingSizePoints = 18, double captionSizePoints = 11, double labelSizePoints = 11.25, double subtitleSizePoints = 12)` [#](#constructor-ctor-string-double-double-double-double)

[OfficeVisualDocumentStyle.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.ChartForgeX/OfficeVisualDocumentStyle.cs#L16)

Creates an immutable document typography style. Sizes are expressed in points.

Parameters

**fontFamily string = "Arial" optional**

**headingSizePoints double = 18 optional**

**captionSizePoints double = 11 optional**

**labelSizePoints double = 11.25 optional**

**subtitleSizePoints double = 12 optional**

## Methods

`public VisualRenderContext CreateContext(double widthPoints = 450, double heightPoints = 270, VisualThemeMode themeMode = Light, VisualFrame? frame = null, VisualTheme? theme = null)` [#](#method-createcontext-double-double-chartforgex-themes-visualthememode-chartforgex-rendering-visualframe-chartforgex-themes-visualtheme)

[OfficeVisualDocumentStyle.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.ChartForgeX/OfficeVisualDocumentStyle.cs#L45)

Creates a ChartForgeX context at the intended document size, using this typography and the shared paired palette. Padding is at most 18 points and scales down to a quarter of the shorter side for compact charts.

Parameters

**widthPoints double = 450 optional**

Intended document width in points.

**heightPoints double = 270 optional**

Intended document height in points.

**themeMode ChartForgeX.Themes.VisualThemeMode = Light optional**

Light or dark paired palette.

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

Optional title, subtitle, legend and surface configuration.

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

Optional palette and geometry. This style supplies its typography.

Returns

`VisualRenderContext`

## 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 static OfficeVisualDocumentStyle Default { get; }` [#](#property-default)

[OfficeVisualDocumentStyle.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.ChartForgeX/OfficeVisualDocumentStyle.cs#L13)

Gets the shared Arial document style with 18-point headings and 11.25-point chart labels.

`public string FontFamily { get; }` [#](#property-fontfamily)

[OfficeVisualDocumentStyle.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.ChartForgeX/OfficeVisualDocumentStyle.cs#L27)

Gets the font family used by chart preparation and document text.

`public double HeadingSizePoints { get; }` [#](#property-headingsizepoints)

[OfficeVisualDocumentStyle.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.ChartForgeX/OfficeVisualDocumentStyle.cs#L29)

Gets the heading size in points.

`public double CaptionSizePoints { get; }` [#](#property-captionsizepoints)

[OfficeVisualDocumentStyle.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.ChartForgeX/OfficeVisualDocumentStyle.cs#L31)

Gets the caption size in points.

`public double LabelSizePoints { get; }` [#](#property-labelsizepoints)

[OfficeVisualDocumentStyle.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.ChartForgeX/OfficeVisualDocumentStyle.cs#L33)

Gets the chart axis, legend and data-label size in points.

`public double SubtitleSizePoints { get; }` [#](#property-subtitlesizepoints)

[OfficeVisualDocumentStyle.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.ChartForgeX/OfficeVisualDocumentStyle.cs#L35)

Gets the chart subtitle size in points.

<!-- PowerForge markdown artifact sha256:9E772C70C059C0E48F14FED21B408DC458B697C5F19A08FBA8E55267806AD67E -->
