RunicRegionCollectionState record

Namespace Runic.Application.Testing in Runic.Application.Testing 0.23.0

public sealed record RunicRegionCollectionState : IEquatable<RunicRegionCollectionState>

Inherits or implements IEquatable.

A region collection in a View's state (RunicRegionCollectionAttribute, region-collections/1): its regions in order and the selected index.

Parameters

Regions

The regions, in the selection's order.

SelectedIndex

The index of the selected region, or null when there is no region.

Constructors

RunicRegionCollectionState

public RunicRegionCollectionState(IReadOnlyList<RunicRegionSlot> Regions, int? SelectedIndex)

A region collection in a View's state (RunicRegionCollectionAttribute, region-collections/1): its regions in order and the selected index.

Parameters

Regions

The regions, in the selection's order.

SelectedIndex

The index of the selected region, or null when there is no region.

Properties

Keys

public IReadOnlyList<string> Keys { get; }

The keys of the regions, in order.

Regions

public IReadOnlyList<RunicRegionSlot> Regions { get; init; }

The regions, in the selection's order.

SelectedIndex

public int? SelectedIndex { get; init; }

The index of the selected region, or null when there is no region.

SelectedRegion

public RunicRegionSlot? SelectedRegion { get; }

The selected region, or null.