OfficeVisualDocumentStyle
OfficeIMO.ChartForgeX
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
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"
- headingSizePoints double = 18
- captionSizePoints double = 11
- labelSizePoints double = 11.25
- subtitleSizePoints double = 12
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
- Intended document width in points.
- heightPoints double = 270
- Intended document height in points.
- themeMode ChartForgeX.Themes.VisualThemeMode = Light
- Light or dark paired palette.
- frame ChartForgeX.Rendering.VisualFrame? = null
- Optional title, subtitle, legend and surface configuration.
- theme ChartForgeX.Themes.VisualTheme? = null
- Optional palette and geometry. This style supplies its typography.
Returns
VisualRenderContextInherited Methods
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.