Class
MarkdownImportStyleSettings

Controls which styles are applied to Markdown elements during import and allows their visual properties to be customized.

Definition

Namespace:Telerik.Windows.Documents.Flow.FormatProviders.Md

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

cs-api-definition
public class MarkdownImportStyleSettings

Inheritance: objectMarkdownImportStyleSettings

Constructors

MarkdownImportStyleSettings()

Declaration

cs-api-definition
public MarkdownImportStyleSettings()

Properties

BlockQuoteStyleId

Gets or sets the style ID used for block-quote paragraphs. When null, defaults to "MarkdownBlockQuote".

Declaration

cs-api-definition
public string BlockQuoteStyleId { get; set; }

Property Value

string

CodeBlockStyleId

Gets or sets the base style ID used for fenced code blocks. When null, defaults to "MarkdownFencedCode". Language-specific code blocks append an underscore and the language name (e.g. "MarkdownFencedCode_csharp").

Declaration

cs-api-definition
public string CodeBlockStyleId { get; set; }

Property Value

string

ConfigureBlockQuoteStyle

Gets or sets a callback that is invoked when the block-quote style is auto-created. Use this to override the default visual properties (foreground color, borders, etc.). Not called when the style already exists in the document.

Declaration

cs-api-definition
public Action<Style> ConfigureBlockQuoteStyle { get; set; }

Property Value

Action<Style>

Remarks

The Style parameter passed to the callback is never null.

ConfigureCodeBlockStyle

Gets or sets a callback that is invoked when a fenced code-block style is auto-created. The callback receives the style being created, allowing font, background, and other properties to be customized. Not called when the style already exists in the document.

Declaration

cs-api-definition
public Action<Style> ConfigureCodeBlockStyle { get; set; }

Property Value

Action<Style>

Remarks

The Style parameter passed to the callback is never null.

ConfigureTableStyle

Gets or sets a callback that is invoked when the table style is auto-created. Use this to override the default visual properties (borders, shading, etc.). Not called when the style already exists in the document.

Declaration

cs-api-definition
public Action<Style> ConfigureTableStyle { get; set; }

Property Value

Action<Style>

Remarks

The Style parameter passed to the callback is never null.

ConfigureThematicBreakStyle

Gets or sets a callback that is invoked when the thematic-break style is auto-created. Use this to override the default visual properties (border color, width, etc.). Not called when the style already exists in the document.

Declaration

cs-api-definition
public Action<Style> ConfigureThematicBreakStyle { get; set; }

Property Value

Action<Style>

Remarks

The Style parameter passed to the callback is never null.

HeadingStyleIds

Gets a dictionary that overrides the style ID applied to headings on a per-level basis. Keys are heading levels 1–6; values are the style IDs to apply. Keys outside the 1–6 range are ignored. Levels absent from the dictionary use the corresponding built-in heading style. The referenced styles must already exist in the document's style repository.

Declaration

cs-api-definition
public IDictionary<int, string> HeadingStyleIds { get; }

Property Value

IDictionary<int, string>

TableStyleId

Gets or sets the style ID used for tables imported from Markdown. When null, defaults to "MarkdownTable".

Declaration

cs-api-definition
public string TableStyleId { get; set; }

Property Value

string

ThematicBreakStyleId

Gets or sets the style ID used for thematic-break paragraphs (---, ***, ___). When null, defaults to "MarkdownThematicBreak".

Declaration

cs-api-definition
public string ThematicBreakStyleId { get; set; }

Property Value

string