API Reference

Class

DetailsBlock

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Implements
IMarkdownBlock IChildMarkdownBlockContainer ISyntaxChildrenMarkdownBlock IOwnedSyntaxChildrenMarkdownBlock ISyntaxMarkdownBlock
Modifiers sealed

Collapsible disclosure block with an optional summary and nested content.

Inheritance

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

Constructors

DetailsBlock 2 overloads
public DetailsBlock() #

Creates an empty details block.

public DetailsBlock(SummaryBlock summary, IEnumerable<IMarkdownBlock> children = null, Boolean open = false) #

Creates a details block with a summary and children.

Parameters

summary OfficeIMO.Markdown.SummaryBlock requiredposition: 0
children System.Collections.Generic.IEnumerable{OfficeIMO.Markdown.IMarkdownBlock} = null optionalposition: 1
open System.Boolean = false optionalposition: 2

Properties

public SummaryBlock Summary { get; set; } #

Optional summary displayed in the disclosure header.

public List<IMarkdownBlock> Children { get; } #

Nested blocks rendered inside the details body.

public IReadOnlyList<IMarkdownBlock> ChildBlocks { get; } #

Read-only AST-style view of parsed child blocks inside the details body.

SyntaxChildren #

Nested syntax nodes captured during parsing, when available.

public Boolean InsertBlankLineAfterSummary { get; set; } #

Whether to emit a blank line between the summary and the first child block.

public Boolean InsertBlankLineBeforeClosing { get; set; } #

Whether to emit a blank line before the closing tag.

public Boolean Open { get; set; } #

Whether the details element is initially expanded.