API Reference
OfficeVisualDocumentStyle
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 System.String = "Arial"
- headingSizePoints System.Double = 18
- captionSizePoints System.Double = 11
- labelSizePoints System.Double = 11.25
- subtitleSizePoints System.Double = 12
Methods
public VisualRenderContext CreateContext(Double widthPoints = 450, Double heightPoints = 270, VisualThemeMode themeMode = Light, VisualFrame? frame = null, VisualTheme? theme = null) #VisualRenderContextCreates a ChartForgeX context at the intended document size, using this typography and the shared paired palette.
Parameters
- widthPoints System.Double = 450
- Intended document width in points.
- heightPoints System.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.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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.