# CustomContainerBlock

Markdig-style colon-fenced custom container block rendered as an HTML div.

Class 

`OfficeIMO.Markdown`

**Namespace**

`OfficeIMO.Markdown`

**Assembly**

`OfficeIMO.Markdown`

**Source revision**

`90fbca630045` with working tree changes

**Source**

[CustomContainerBlock.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L47)

**Base**

`MarkdownBlock`

**Implements**

`IMarkdownBlock` `IChildMarkdownBlockContainer` `ISyntaxChildrenMarkdownBlock` `IOwnedSyntaxChildrenMarkdownBlock` `ISyntaxMarkdownBlock` `ITightListItemHtmlMarkdownBlock`

**Modifiers**

sealed

Markdig-style colon-fenced custom container block rendered as an HTML div.

## Inheritance

- [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)
- [MarkdownBlock](/api/markdown/officeimo-markdown-markdownblock/)
- CustomContainerBlock

## 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 [MarkdownNativeCustomContainerBlock.Container](/api/markdown/officeimo-markdown-markdownnativecustomcontainerblock/#property-container)

Filter members 

Show inherited

## Constructors

`public CustomContainerBlock(string? info, IEnumerable<IMarkdownBlock>? children = null, int openingFenceLength = 3)` [#](#constructor-ctor-string-collections-generic-ienumerable-officeimo-markdown-imarkdownblock-int32)

[CustomContainerBlock.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L47)

Creates a custom container block.

Parameters

**info string? required**

**children System.Collections.Generic.IEnumerable<OfficeIMO.Markdown.IMarkdownBlock>? = null optional**

**openingFenceLength int = 3 optional**

## Inherited Methods

`public void Accept(MarkdownVisitor visitor)` [#](#method-accept-markdownvisitor)

[MarkdownObject.cs:155](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Core/MarkdownObject.cs#L155)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

Parameters

**visitor MarkdownVisitor required**

`public IEnumerable<MarkdownObject> Ancestors()` [#](#method-ancestors)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

Returns

`IEnumerable<MarkdownObject>`

`public IEnumerable<MarkdownObject> AncestorsAndSelf()` [#](#method-ancestorsandself)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

Returns

`IEnumerable<MarkdownObject>`

`public IEnumerable<TObject> DescendantObjectsOfType<TObject>()` [#](#method-descendantobjectsoftype)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

Type Parameters

**TObject**

Returns

`IEnumerable<TObject>`

`public IEnumerable<MarkdownObject> Descendants()` [#](#method-descendants)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

Returns

`IEnumerable<MarkdownObject>`

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; }` [#](#property-name)

[CustomContainerBlock.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L11)

First token from the container info string, used as the rendered CSS class.

`public string Info { get; }` [#](#property-info)

[CustomContainerBlock.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L14)

Full source info string after the opening colon fence.

`public int OpeningFenceLength { get; }` [#](#property-openingfencelength)

[CustomContainerBlock.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L17)

Number of colon characters in the opening fence.

`public int ClosingFenceLength { get; internal set; }` [#](#property-closingfencelength)

[CustomContainerBlock.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L20)

Number of colon characters in the closing fence, when the source had one.

`public IReadOnlyList<IMarkdownBlock> ChildBlocks { get; }` [#](#property-childblocks)

[CustomContainerBlock.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L23)

Parsed child blocks inside the container.

`public MarkdownSourceSpan? OpeningFenceSourceSpan { get; internal set; }` [#](#property-openingfencesourcespan)

[CustomContainerBlock.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L29)

Source span for the opening colon fence marker.

`public MarkdownSourceSpan? InfoSourceSpan { get; internal set; }` [#](#property-infosourcespan)

[CustomContainerBlock.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L33)

Source span for the container info string.

`public MarkdownSourceSpan? NameSourceSpan { get; internal set; }` [#](#property-namesourcespan)

[CustomContainerBlock.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L41)

Source span for the first info token used as the rendered CSS class.

`public MarkdownSourceSpan? ClosingFenceSourceSpan { get; internal set; }` [#](#property-closingfencesourcespan)

[CustomContainerBlock.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Blocks/CustomContainerBlock.cs#L44)

Source span for the closing colon fence marker, when present.

## Inherited Properties

`public MarkdownObject? Parent { get; }` [#](#property-parent)

[MarkdownObject.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Core/MarkdownObject.cs#L93)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownDocument? Document { get; }` [#](#property-document)

[MarkdownObject.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Core/MarkdownObject.cs#L96)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownObject Root { get; }` [#](#property-root)

[MarkdownObject.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Core/MarkdownObject.cs#L99)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public int? IndexInParent { get; }` [#](#property-indexinparent)

[MarkdownObject.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Core/MarkdownObject.cs#L102)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownObject? PreviousSibling { get; }` [#](#property-previoussibling)

[MarkdownObject.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Core/MarkdownObject.cs#L105)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownObject? NextSibling { get; }` [#](#property-nextsibling)

[MarkdownObject.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Core/MarkdownObject.cs#L108)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownSourceSpan? SourceSpan { get; internal set; }` [#](#property-sourcespan)

[MarkdownObject.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Core/MarkdownObject.cs#L113)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownAttributeSet Attributes { get; }` [#](#property-attributes)

[MarkdownObject.cs:144](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Core/MarkdownObject.cs#L144)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public IReadOnlyList<MarkdownObject> ChildObjects { get; }` [#](#property-childobjects)

[MarkdownObject.cs:151](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Markdown/Core/MarkdownObject.cs#L151)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

<!-- PowerForge markdown artifact sha256:1411870BACA5094ACB32D3FE60A53871E60A1668DB132BD7BCA1D4048B3CFF24 -->
