public static TableCell BorderRight(this TableCell Cell, int Size = 6, string Color = "auto", BorderValues Value = BorderValues.Single, int Space = 0) { Cell.GetBorderProperties() .Content() .GetOrAppend <RightBorder>().Set(Size, Color, Value, Space); return(Cell); }
public static TableCell Border(this TableCell Cell, int Left = 0, int Top = 0, int Right = 0, int Bottom = 0) { var properties = Cell.GetBorderProperties(); if (Top > 0) { properties.Content().GetOrAppend <TopBorder>().Set(Top); } if (Left > 0) { properties.Content().GetOrAppend <LeftBorder>().Set(Left); } if (Bottom > 0) { properties.Content().GetOrAppend <BottomBorder>().Set(Bottom); } if (Right > 0) { properties.Content().GetOrAppend <RightBorder>().Set(Right); } return(Cell); }