Method WithGroup
- Namespace
- OpenEphys.EphysVisualization.Design
- Assembly
- OpenEphys.EphysVisualization.Design.dll
WithGroup(ChannelSettings[]?, IEnumerable<int>, int, bool)
Returns channel settings with channels moved into a group.
public static ChannelSettings[]? WithGroup(ChannelSettings[]? channels, IEnumerable<int> moved, int group, bool replace = false)
Parameters
channelsChannelSettings[]The settings to start from, or null for every channel at its defaults.
movedIEnumerable<int>The channels to move.
groupintThe group to move them into, or 0 to move them back to the default group.
replaceboolWhether the group's other channels move back to the default group.
Returns
- ChannelSettings[]
A new array, in channel order, of the channels whose settings differ from the defaults, or null if none does.