Class Sequence
A sequence of inline markup nodes.
public sealed class Sequence : Inline
- Inheritance
-
Sequence
- Inherited Members
Constructors
Sequence(params Inline[])
Creates a sequence from a parameter list of inline nodes.
public Sequence(params Inline[] contents)
Parameters
contentsInline[]The inline contents.
Sequence(IReadOnlyList<Inline>)
Creates a sequence of inline nodes.
public Sequence(IReadOnlyList<Inline> contents)
Parameters
contentsIReadOnlyList<Inline>The inline contents.
Properties
Contents
Gets the sequence's inline children.
public IReadOnlyList<Inline> Contents { get; }
Property Value
Methods
Map<T>(IReadOnlyList<T>, Func<T, T>)
Maps a sequence without reallocating when no element changes.
public static IReadOnlyList<T> Map<T>(IReadOnlyList<T> elements, Func<T, T> mapping) where T : class
Parameters
elementsIReadOnlyList<T>The elements to map.
mappingFunc<T, T>The mapping function to apply to each element.
Returns
Type Parameters
T