MarkdownVisualTheme
OfficeIMO.Markdown
Shared visual profile used to keep Markdown exports visually consistent across HTML, PDF, and Word.
Inheritance
- object
- MarkdownVisualTheme
Usage
Explore 17 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 15
- Property MarkdownHtmlExportOptions.Theme
- Method MarkdownVisualTheme.Clone
- Method MarkdownVisualTheme.Compact
- Method MarkdownVisualTheme.Create
- Method MarkdownVisualTheme.Default
- Method MarkdownVisualTheme.GitHubLike
- Method MarkdownVisualTheme.Plain
- Method MarkdownVisualTheme.Report
- Method MarkdownVisualTheme.ResolveOrDefault
- Method MarkdownVisualTheme.TechnicalDocument
- Method MarkdownVisualTheme.WithColors
- Method MarkdownVisualTheme.WithColorScheme
- Method MarkdownVisualTheme.WithTable
- Method MarkdownVisualTheme.WordLike
- Method MarkdownVisualThemePreset.CreateTheme
Accepted by parameters 2
Constructors
Methods
public static MarkdownVisualTheme Compact() #Compact profile for dense technical notes.
Returns
MarkdownVisualThemepublic static MarkdownVisualTheme Create(OfficeVisualThemeKind kind) #Creates one of the built-in shared visual themes.
Parameters
- kind OfficeIMO.Drawing.OfficeVisualThemeKind
Returns
MarkdownVisualThemepublic static MarkdownVisualTheme Create(OfficeVisualThemeKind kind, MarkdownColorSchemeKind colorScheme) #Creates one of the built-in shared visual themes and applies a built-in color scheme.
Parameters
- kind OfficeIMO.Drawing.OfficeVisualThemeKind
- colorScheme OfficeIMO.Markdown.MarkdownColorSchemeKind
Returns
MarkdownVisualThemepublic static MarkdownVisualTheme Default() #Default shared visual theme used when exporters are asked to produce styled output without an explicit theme.
Returns
MarkdownVisualThemepublic static MarkdownVisualTheme GitHubLike() #GitHub-inspired profile for README-style exports.
Returns
MarkdownVisualThemepublic static MarkdownVisualTheme Plain() #Plain profile with minimal visual opinions.
Returns
MarkdownVisualThemepublic static MarkdownVisualTheme Report() #Report-oriented profile with stronger hierarchy and tables.
Returns
MarkdownVisualThemepublic static MarkdownVisualTheme? ResolveOrDefault(MarkdownVisualTheme? theme, bool applyDefaultTheme = true) #Returns a copy of the requested theme, or the default shared theme when enabled.
Parameters
- theme OfficeIMO.Markdown.MarkdownVisualTheme?
- applyDefaultTheme bool = true
Returns
MarkdownVisualTheme?public static MarkdownVisualTheme TechnicalDocument() #Polished profile for technical guides, specs, and READMEs.
Returns
MarkdownVisualThemepublic static bool TryCreate(string? name, out MarkdownVisualTheme? theme) #Tries to create a built-in shared visual theme from an API or front-matter name.
Parameters
- name string?
- theme OfficeIMO.Markdown.MarkdownVisualTheme?
Returns
boolpublic static bool TryCreate(string? name, MarkdownColorSchemeKind colorScheme, out MarkdownVisualTheme? theme) #Tries to create a built-in shared visual theme from an API or front-matter name and applies a built-in color scheme.
Parameters
- name string?
- colorScheme OfficeIMO.Markdown.MarkdownColorSchemeKind
- theme OfficeIMO.Markdown.MarkdownVisualTheme?
Returns
boolpublic MarkdownVisualTheme WithColors(string? accent = null, string? heading = null, string? text = null, string? mutedText = null, string? background = null, string? surface = null, string? border = null, string? codeBackground = null, string? tableHeaderBackground = null, string? tableHeaderText = null, string? tableStripeBackground = null) #Returns a copy of this theme with selected palette colors overridden.
Parameters
- accent string? = null
- heading string? = null
- text string? = null
- mutedText string? = null
- background string? = null
- surface string? = null
- border string? = null
- codeBackground string? = null
- tableHeaderBackground string? = null
- tableHeaderText string? = null
- tableStripeBackground string? = null
Returns
MarkdownVisualThemepublic MarkdownVisualTheme WithColorScheme(MarkdownColorSchemeKind scheme) #Returns a copy of this theme with the requested color scheme applied.
Parameters
- scheme OfficeIMO.Markdown.MarkdownColorSchemeKind
Returns
MarkdownVisualThemepublic MarkdownVisualTheme WithTable(Action<MarkdownTableVisualStyle> configure) #Returns a copy of this theme with table styling configured.
Parameters
- configure System.Action<OfficeIMO.Markdown.MarkdownTableVisualStyle>
Returns
MarkdownVisualThemepublic static MarkdownVisualTheme WordLike() #Neutral Word-like profile for general documents.
Returns
MarkdownVisualThemeInherited Methods
Properties
public OfficeVisualThemeKind Kind { get; set; } #Theme kind used for diagnostics and renderer mapping.
public MarkdownHtmlStyle HtmlStyle { get; set; } #Preferred built-in HTML style preset when rendering this theme to HTML.
public MarkdownVisualPalette Palette { get; set; } #Semantic color palette shared by exporters.
public MarkdownTableVisualStyle Table { get; set; } #MarkdownTable styling shared by exporters.
public static IReadOnlyList<MarkdownVisualThemePreset> Presets { get; } #Built-in visual theme presets callers can offer as stable choices.
public static IReadOnlyList<MarkdownColorSchemeKind> ColorSchemes { get; } #Built-in accent color schemes that can be applied to any preset.