Skip to content

RowColumn

namespace Griff.Scenes;
public sealed class RowColumn

A column of a RowsAttribute’s rows: what its cells hold and what the Inspector calls it.

public IReadOnlyList<string>? Choices { get; init; }

For a Choice cell, what can be picked; for a text or name cell, words offered too.

public string Default { get; init; }

What a new row has in it.

public CellKind Kind { get; init; }

What its cells hold.

public bool Loose { get; init; }

For a name cell: the project’s names are offered, but one that isn’t among them isn’t flagged (it may name something else too).

public string Name { get; init; }

What it’s called, over the rows and to agents (“Item”, “Count”).

public NamesAttribute? Names { get; init; }

For a Name or Amounts cell: what it names, picked from the project’s.

public bool Optional { get; init; }

It may be left empty, and a new row leaves it so.

public string? Tip { get; init; }

What it means, as a tip.

public bool Under { get; init; }

It sits on a line under the row’s other cells with the others marked so, side by side, each with its name: the details of a row that won’t all fit across (a sheet’s frames across, down and which, a background’s two colors).

public string? Unit { get; init; }

What it is in, after a number: “%”, “s”.

public bool Wide { get; init; }

It takes a line of its own under the row’s other cells (a line said, a list of amounts).

public double Width { get; init; }

How wide its cell is, in the Inspector’s units, for one that takes little room (a button’s letter); 0 for what its kind takes.

public void Deconstruct(out string Name, out CellKind Kind)
public override bool Equals(object? obj)
public bool Equals(RowColumn? other)
public override int GetHashCode()
public override string ToString()