This commit is contained in:
melekhin
2026-06-19 16:35:17 +07:00
parent e373d4108a
commit 5302edfb8f

View File

@@ -10,11 +10,11 @@
public readonly struct CellBorder : IEquatable<CellBorder> public readonly struct CellBorder : IEquatable<CellBorder>
{ {
public static CellBorder Bottom { get; } = new() { BottomBorder = BorderSide.BlackThin }; public static CellBorder BottomThin { get; } = new() { BottomBorder = BorderSide.BlackThin };
public static CellBorder Top { get; } = new() { TopBorder = BorderSide.BlackThin }; public static CellBorder TopThin { get; } = new() { TopBorder = BorderSide.BlackThin };
public static CellBorder Left { get; } = new() { LeftBorder = BorderSide.BlackThin }; public static CellBorder LeftThin { get; } = new() { LeftBorder = BorderSide.BlackThin };
public static CellBorder Right { get; } = new() { RightBorder = BorderSide.BlackThin }; public static CellBorder RightThin { get; } = new() { RightBorder = BorderSide.BlackThin };
public static CellBorder All { get; } = new() public static CellBorder AllThin { get; } = new()
{ {
BottomBorder = BorderSide.BlackThin, BottomBorder = BorderSide.BlackThin,
TopBorder = BorderSide.BlackThin, TopBorder = BorderSide.BlackThin,
@@ -22,6 +22,30 @@ public readonly struct CellBorder : IEquatable<CellBorder>
RightBorder = BorderSide.BlackThin RightBorder = BorderSide.BlackThin
}; };
public static CellBorder BottomMedium { get; } = new() { BottomBorder = BorderSide.BlackMedium };
public static CellBorder TopMedium { get; } = new() { TopBorder = BorderSide.BlackMedium };
public static CellBorder LeftMedium { get; } = new() { LeftBorder = BorderSide.BlackMedium };
public static CellBorder RightMedium { get; } = new() { RightBorder = BorderSide.BlackMedium };
public static CellBorder AllMedium { get; } = new()
{
BottomBorder = BorderSide.BlackMedium,
TopBorder = BorderSide.BlackMedium,
LeftBorder = BorderSide.BlackMedium,
RightBorder = BorderSide.BlackMedium
};
public static CellBorder BottomThick { get; } = new() { BottomBorder = BorderSide.BlackThick };
public static CellBorder TopThick { get; } = new() { TopBorder = BorderSide.BlackThick };
public static CellBorder LeftThick { get; } = new() { LeftBorder = BorderSide.BlackThick };
public static CellBorder RightThick { get; } = new() { RightBorder = BorderSide.BlackThick };
public static CellBorder AllThick { get; } = new()
{
BottomBorder = BorderSide.BlackThick,
TopBorder = BorderSide.BlackThick,
LeftBorder = BorderSide.BlackThick,
RightBorder = BorderSide.BlackThick
};
/// <summary>Верхняя граница.</summary> /// <summary>Верхняя граница.</summary>