Table of Contents

Class GroupMatrixCells

Namespace
Dynamicweb.Ecommerce.Products.Categories
Assembly
Dynamicweb.Ecommerce.dll

A product group's matrix as an editor shows it: the cells in display order, and whether the group defines the rows itself.

public sealed record GroupMatrixCells : IEquatable<GroupMatrixCells>
Inheritance
GroupMatrixCells
Implements
Inherited Members

Constructors

GroupMatrixCells(IReadOnlyList<MatrixCellView>, bool)

A product group's matrix as an editor shows it: the cells in display order, and whether the group defines the rows itself.

public GroupMatrixCells(IReadOnlyList<MatrixCellView> Cells, bool OwnsRows)

Parameters

Cells IReadOnlyList<MatrixCellView>

The cells in display order. RowId carries the row id, which stays with a row when the rows are reordered, and SortOrder the row's position.

OwnsRows bool

Whether the group defines the rows itself - it has rows of its own, or no group it inherits from has any - so its default language can add, remove and reorder them. When false the rows come from a group it inherits from, and the group can only overwrite cells.

Properties

Cells

The cells in display order. RowId carries the row id, which stays with a row when the rows are reordered, and SortOrder the row's position.

public IReadOnlyList<MatrixCellView> Cells { get; init; }

Property Value

IReadOnlyList<MatrixCellView>

OwnsRows

Whether the group defines the rows itself - it has rows of its own, or no group it inherits from has any - so its default language can add, remove and reorder them. When false the rows come from a group it inherits from, and the group can only overwrite cells.

public bool OwnsRows { get; init; }

Property Value

bool
To top