Exemple #1
0
    public static TableCell VerticalAlignment(this TableCell Cell, TableVerticalAlignmentValues Alignment)
    {
        Cell.Content()
        .GetOrPrepend <TableCellProperties>().Content()
        .GetOrAppend <TableCellVerticalAlignment>()
        .Val = Alignment;

        return(Cell);
    }
Exemple #2
0
    public static TableCell Width(this TableCell Cell, int width, TableWidthUnitValues Type = TableWidthUnitValues.Dxa)
    {
        var width_properties = Cell.Content()
                               .GetOrPrepend <TableCellProperties>().Content()
                               .GetOrAppend <TableCellWidth>();

        width_properties.Width = width.ToString();
        width_properties.Type  = Type;

        return(Cell);
    }
Exemple #3
0
 private static TableCellBorders GetBorderProperties(this TableCell Cell) => Cell.Content()
 .GetOrAppend <TableCellProperties>().Content()
 .GetOrAppend <TableCellBorders>();