API Reference
MarkdownVisualTheme
Shared visual profile used to keep Markdown exports visually consistent across HTML, PDF, and Word.
Inheritance
- Object
- MarkdownVisualTheme
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property HtmlOptions.VisualTheme
- Method MarkdownVisualTheme.Clone
- Method MarkdownVisualTheme.Compact
- Method MarkdownVisualTheme.Create
- Method MarkdownVisualTheme.GitHubLike
- Method MarkdownVisualTheme.Plain
- Method MarkdownVisualTheme.Report
- Method MarkdownVisualTheme.TechnicalDocument
- Method MarkdownVisualTheme.WithColors
- Method MarkdownVisualTheme.WithColorScheme
- Method MarkdownVisualTheme.WithTable
- Method MarkdownVisualTheme.WordLike
Accepted by parameters
Constructors
public MarkdownVisualTheme() #Creates a custom visual theme.
Methods
public MarkdownVisualTheme Clone() #MarkdownVisualThemeCreates a copy of this visual theme.
public static MarkdownVisualTheme Compact() #MarkdownVisualThemeCompact profile for dense technical notes.
public static MarkdownVisualTheme Create(MarkdownVisualThemeKind kind) #MarkdownVisualThemeCreates one of the built-in shared visual themes.
Parameters
- kind OfficeIMO.Markdown.MarkdownVisualThemeKind
public static MarkdownVisualTheme GitHubLike() #MarkdownVisualThemeGitHub-inspired profile for README-style exports.
public static MarkdownVisualTheme Plain() #MarkdownVisualThemePlain profile with minimal visual opinions.
public static MarkdownVisualTheme Report() #MarkdownVisualThemeReport-oriented profile with stronger hierarchy and tables.
public static MarkdownVisualTheme TechnicalDocument() #MarkdownVisualThemePolished profile for technical guides, specs, and READMEs.
public static Boolean TryCreate(String name, out MarkdownVisualTheme theme) #BooleanTries to create a built-in shared visual theme from an API or front-matter name.
Parameters
- name System.String
- theme OfficeIMO.Markdown.MarkdownVisualTheme@
public 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) #MarkdownVisualThemeReturns a copy of this theme with selected palette colors overridden.
Parameters
- accent System.String = null
- heading System.String = null
- text System.String = null
- mutedText System.String = null
- background System.String = null
- surface System.String = null
- border System.String = null
- codeBackground System.String = null
- tableHeaderBackground System.String = null
- tableHeaderText System.String = null
- tableStripeBackground System.String = null
public MarkdownVisualTheme WithColorScheme(MarkdownColorSchemeKind scheme) #MarkdownVisualThemeReturns a copy of this theme with the requested color scheme applied.
Parameters
- scheme OfficeIMO.Markdown.MarkdownColorSchemeKind
public MarkdownVisualTheme WithTable(Action<MarkdownTableVisualStyle> configure) #MarkdownVisualThemeReturns a copy of this theme with table styling configured.
Parameters
- configure System.Action{OfficeIMO.Markdown.MarkdownTableVisualStyle}
public static MarkdownVisualTheme WordLike() #MarkdownVisualThemeNeutral Word-like profile for general documents.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public MarkdownVisualThemeKind Kind { get; set; } #Theme kind used for diagnostics and renderer mapping.
public String Name { get; set; } #Human-readable theme name.
public HtmlStyle 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; } #Table styling shared by exporters.