Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeVisualDocumentStyle

Namespace OfficeIMO.ChartForgeX
Assembly OfficeIMO.ChartForgeX
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 System.String = "Arial" optionalposition: 0
headingSizePoints System.Double = 18 optionalposition: 1
captionSizePoints System.Double = 11 optionalposition: 2
labelSizePoints System.Double = 11.25 optionalposition: 3
subtitleSizePoints System.Double = 12 optionalposition: 4

Methods

public VisualRenderContext CreateContext(Double widthPoints = 450, Double heightPoints = 270, VisualThemeMode themeMode = Light, VisualFrame? frame = null, VisualTheme? theme = null) #
Returns: VisualRenderContext

Creates a ChartForgeX context at the intended document size, using this typography and the shared paired palette.

Parameters

widthPoints System.Double = 450 optionalposition: 0
Intended document width in points.
heightPoints System.Double = 270 optionalposition: 1
Intended document height in points.
themeMode ChartForgeX.Themes.VisualThemeMode = Light optionalposition: 2
Light or dark paired palette.
frame ChartForgeX.Rendering.VisualFrame? = null optionalposition: 3
Optional title, subtitle, legend and surface configuration.
theme ChartForgeX.Themes.VisualTheme? = null optionalposition: 4
Optional palette and geometry. This style supplies its typography.

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.