CompositionSection

References
public sealed class CompositionSection
A named and organised collection of proxy slots.

Constructors

CompositionSection

#
public CompositionSection(string name, Text sortKey, params CompositionSlot[] slots)
Create a new section.
name (string)
sortKey (Prose.Text)
slots (params CompositionSlot[])

Properties

Name

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

Slots

#
public CompositionSlot[] Slots { get; }
Iterate over all slots.

SortKey

#
public Prose.Text SortKey { get; }
Gets the sorting key for this section. If the sorting key is not specified, then the Name ought to be used for sorting.

Methods

Insert

#
Insert a collection of items into this section.
item (CompositionItem)

Remove

#
public CompositionSection Remove(Selector selector, List<CompositionItem> list)
Remove all indicated items from this section.
selector (Selector)Selector pattern.
list (List<CompositionItem>)All removed items will be appended to this list.

Convertors

OperationResultDescription
implicitCompositionItemCompositionSectionCreate a section with a single item.