Composition

References
public sealed class Composition
An organised collection of chapters.

Constructors

Composition

#
Create a new layout.
public Composition(
chapters
)

Properties

Chapters

#
Gets all the chapters contained in this layout.
public CompositionChapter[] Chapters { get; }

Methods

Apply

#
Apply one or more rules to this organisation.
public Composition Apply(
rules,
Rules to apply.
citationResolver
Method which returns the cited rules given their name. If this argument is not supplied, cited rules will not be considered.
)

FromItems<T>

#
Create a new organisation from a collection of values.
public static Composition FromItems<T>(
values,
Value to add.
Func<T, Nomen>
toNomen,
Nomen extractor.
Func<T, IIcon>
toIcon,
Icon extractor.
Func<T, Guid>
toId
Id extractor.
)

Insert

#
Insert a collection of items into this chapter.
public Composition Insert()

Remove

#
Remove all indicated items from this chapter.
public Composition Remove(
selector,
Selector pattern.
list
All removed items will be appended to this list.
)