CompositionSlot

References
public sealed class CompositionSlot
An indexed and organised collection of CompositionItem.

Constructors

CompositionSlot

#
public CompositionSlot(int index, params CompositionItem[] items)
Create a new slot.
index (int)
items (params CompositionItem[])

Properties

Index

#
public int Index { get; }
Gets the index of this slot.

Items

#
public CompositionItem[] Items { get; }
Gets the items in this slot.

Methods

Insert

#
public CompositionSlot Insert(CompositionItem item)
Insert an item into this slot. Note that the Nomen.Slot of the CompositionItem.Nomen field must be identical to the Index of this CompositionSlot.
item (CompositionItem)

Remove

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

Convertors

OperationResultDescription
implicitCompositionItemCompositionSlotCreate a slot with a single item.