Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeVisualDocumentStyle

OfficeIMO.ChartForgeX

Namespace
OfficeIMO.ChartForgeX
Assembly
OfficeIMO.ChartForgeX
Source revision
273d35d5ba8a with working tree changes
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

Constructors

public OfficeVisualDocumentStyle(string fontFamily = "Arial", double headingSizePoints = 18, double captionSizePoints = 11, double labelSizePoints = 11.25, double subtitleSizePoints = 12) #

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

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

Properties

public static OfficeVisualDocumentStyle Default { get; } #

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

public string FontFamily { get; } #

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

public double HeadingSizePoints { get; } #

Gets the heading size in points.

public double CaptionSizePoints { get; } #

Gets the caption size in points.

public double LabelSizePoints { get; } #

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

public double SubtitleSizePoints { get; } #

Gets the chart subtitle size in points.