ContainerInline Class
A base class for container for Inline.
public class ContainerInline : Inline, IEnumerable<Inline>, IEnumerableSee also
- Inheritance
InlineContainerInline- Implements
Nested types
| Name | Description |
|---|---|
| ContainerInline.Enumerator | Represents the Enumerator type. |
Constructors
| Name | Description |
|---|---|
| ContainerInline() | Initializes a new instance of the ContainerInline class. |
ContainerInline()
ContainerInline.csInitializes a new instance of the ContainerInline class.
public ContainerInline()Properties
| Name | Description |
|---|---|
| FirstChild | Gets the first child. |
| LastChild | Gets the last child. |
| ParentBlock | Gets the parent block of this inline. |
FirstChild
ContainerInline.csLastChild
ContainerInline.csParentBlock
ContainerInline.csMethods
| Name | Description |
|---|---|
| AppendChild(Inline) | Appends a child to this container. |
| Clear() | Clears this instance by removing all its children. |
| ContainsChild(Inline) | Checks if this instance contains the specified child. |
| DumpChildTo(TextWriter, int) | Performs the dump child to operation. |
| EmbraceChildrenBy(ContainerInline) | Embraces this instance by the specified container. |
| FindDescendants<T>() | Finds all the descendants. |
| GetEnumerator() | Gets enumerator. |
| HasValidSpan(bool) | Checks whether this container span is valid with respect to child inline spans. |
| MoveChildrenAfter(Inline) | Moves all the children of this container after the specified inline. |
| OnChildInsert(Inline) | Performs the on child insert operation. |
| OnChildRemove(Inline) | Performs the on child remove operation. |
| System.Collections.Generic.IEnumerable<Meziantou.Framework.Markdown.Syntax.Inlines.Inline>.GetEnumerator() | |
| System.Collections.IEnumerable.GetEnumerator() | |
| TransferChildrenTo(ContainerInline) | Transfers all children from this container to destination. |
| UpdateSpanFromChildren(bool, bool) | Updates this container span from its child inline spans. |
AppendChild(Inline)
ContainerInline.csAppends a child to this container.
public virtual ContainerInline AppendChild(Inline child)Parameters
childInline- The child to append to this container..
Returns
ContainerInline This instance
Exceptions
ArgumentNullException- If child is null
ArgumentException- Inline has already a parent
Clear()
ContainerInline.csClears this instance by removing all its children.
public void Clear()ContainsChild(Inline)
ContainerInline.csDumpChildTo(TextWriter, int)
ContainerInline.csPerforms the dump child to operation.
protected override void DumpChildTo(TextWriter writer, int level)Parameters
writerTextWriterlevelint
EmbraceChildrenBy(ContainerInline)
ContainerInline.csEmbraces this instance by the specified container.
public void EmbraceChildrenBy(ContainerInline container)Parameters
containerContainerInline- The container to use to embrace this instance.
Exceptions
ArgumentNullException- If the container is null
FindDescendants<T>()
ContainerInline.csFinds all the descendants.
public IEnumerable<T> FindDescendants<T>() where T : InlineGetEnumerator()
ContainerInline.csHasValidSpan(bool)
ContainerInline.csChecks whether this container span is valid with respect to child inline spans.
MoveChildrenAfter(Inline)
ContainerInline.csOnChildInsert(Inline)
ContainerInline.csOnChildRemove(Inline)
ContainerInline.csSystem.Collections.Generic.IEnumerable<Meziantou.Framework.Markdown.Syntax.Inlines.Inline>.GetEnumerator()
ContainerInline.csSystem.Collections.IEnumerable.GetEnumerator()
ContainerInline.csTransferChildrenTo(ContainerInline)
ContainerInline.csTransfers all children from this container to destination.
public void TransferChildrenTo(ContainerInline destination)Parameters
destinationContainerInline- The destination container.
Exceptions
ArgumentNullException- Thrown if
destinationis null.
UpdateSpanFromChildren(bool, bool)
ContainerInline.csUpdates this container span from its child inline spans.
Parameters
recursivebool- When
true, updates descendant container inline spans recursively before updating this container. preserveSelfSpanbool- When
true, preserves this container current span and only expands it to include children. Whenfalse, recomputes from children only.
Returns
bool true when this container span changed; otherwise, false.