DetailsBlock
OfficeIMO.Markdown
Collapsible disclosure block with an optional summary and nested content.
Inheritance
- MarkdownObject
- MarkdownBlock
- DetailsBlock
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
- Property MarkdownNativeDetailsBlock.Details
Constructors
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?
- children System.Collections.Generic.IEnumerable<OfficeIMO.Markdown.IMarkdownBlock>? = null
- open bool = false
Inherited Methods
public void Accept(MarkdownVisitor visitor) #Parameters
- visitor MarkdownVisitor
public IEnumerable<MarkdownObject> Ancestors() #Returns
IEnumerable<MarkdownObject>public IEnumerable<MarkdownObject> AncestorsAndSelf() #Returns
IEnumerable<MarkdownObject>public IEnumerable<TObject> DescendantObjectsOfType<TObject>() #Type Parameters
- TObject
Returns
IEnumerable<TObject>public IEnumerable<MarkdownObject> Descendants() #Returns
IEnumerable<MarkdownObject>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.
Inherited Properties
public MarkdownSourceSpan? SourceSpan { get; internal set; } #public IReadOnlyList<MarkdownObject> ChildObjects { get; } #