Table of Contents

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

channels ChannelSettings[]

The settings to start from, or null for every channel at its defaults.

moved IEnumerable<int>

The channels to move.

group int

The group to move them into, or 0 to move them back to the default group.

replace bool

Whether 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.