CompositionSlot

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

Constructors

CompositionSlot

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

Properties

Index

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

Items

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

Methods

Insert

#
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.
public CompositionSlot Insert()

Remove

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

Convertors

OperationResultDescription
implicitCompositionItemCompositionSlotCreate a slot with a single item.