TableCell class was added

This commit is contained in:
Evgeny Redikultsev
2024-01-27 21:19:06 +05:00
parent a9ffd8b903
commit a680e67ab3
13 changed files with 144 additions and 51 deletions

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StructureHelperCommon.Models.Tables
{
public enum CellRole
{
Title,
Header,
Regular
}
/// <summary>
/// Generic interface for cell of table
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IShTableCell<T>
{
/// <summary>
/// Value of cell
/// </summary>
T Value { get; set; }
/// <summary>
/// Number of cell, joined with this one
/// </summary>
int ColumnSpan { get; set; }
/// <summary>
/// Role of the cell in table
/// </summary>
CellRole Role { get; set; }
}
}