CompositionChapter

References
public sealed class CompositionChapter
A named and organised collection of proxy sections.

Constructors

CompositionChapter

#
Create a new chapter.
public CompositionChapter(
name,
sortKey,
Color?
colour,
sections
)

Properties

Colour

#
Gets the colour associated with this chapter.
public Color? Colour { get; }

Name

#
Gets the name of this chapter.
public string Name { get; }

Sections

#
Gets the sections which make up this chapter.
public CompositionSection[] Sections { get; }

SortKey

#
Gets the sorting key of this chapter. If the key is not set, the name ought to be used for sorting.
public Prose.Text SortKey { get; }

Methods

Insert

#
Insert a collection of items into this chapter.

Remove

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

WithColour

#
Modify the colour of this chapter.
public CompositionChapter WithColour(
Color?
colour
)

Convertors

OperationResultDescription
implicitCompositionItemCompositionChapterCreate a chapter with a single item.