Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

DetailsBlock

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Implements
IMarkdownBlock IChildMarkdownBlockContainer ISyntaxChildrenMarkdownBlock IOwnedSyntaxChildrenMarkdownBlock ISyntaxMarkdownBlock
Modifiers
sealed

Collapsible disclosure block with an optional summary and nested content.

Inheritance

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

Constructors

DetailsBlock 2 overloads
public DetailsBlock() #

Creates an empty details block.

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

Creates a details block with a summary and children.

Parameters

summary OfficeIMO.Markdown.SummaryBlock? required
children System.Collections.Generic.IEnumerable<OfficeIMO.Markdown.IMarkdownBlock>? = null optional
open bool = false optional

Properties

public SummaryBlock? Summary { get; set; } #

Optional summary displayed in the disclosure header.

public List<IMarkdownBlock> ChildBlocks { get; } #

Nested blocks rendered inside the details body.

public bool InsertBlankLineAfterSummary { get; set; } #

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

public bool InsertBlankLineBeforeClosing { get; set; } #

Whether to emit a blank line before the closing tag.

public bool Open { get; set; } #

Whether the details element is initially expanded.

public string? OpeningTag { get; internal set; } #

Exact source opening tag for parsed details blocks, when available.

public string? ClosingTag { get; internal set; } #

Exact source closing tag for parsed details blocks, when available.

public MarkdownSourceSpan? OpeningTagSourceSpan { get; internal set; } #

Source span for the parsed details opening tag, when available.

public MarkdownSourceSpan? ClosingTagSourceSpan { get; internal set; } #

Source span for the parsed details closing tag, when available.