Пример #1
0
        private static string verticalAlignmentClass(EwfTableFieldOrItemSetup row, EwfTableFieldOrItemSetup column)
        {
            // NOTE: Think about whether the row or the column should win.
            var alignments = new[] { row.VerticalAlignment, column.VerticalAlignment };

            return((from i in alignments select TableCellVerticalAlignmentOps.Class(i)).FirstOrDefault(i => i.Length > 0) ?? "");
        }
Пример #2
0
        void ControlTreeDataLoader.LoadData()
        {
            CssClass = CssClass.ConcatenateWithSpace(CssElementCreator.CssClass);

            var cells = from i in ItemsSeparatedWithPipe?separateControls(items) : items
                            select
                            new TableCell
            {
                CssClass =
                    StringTools.ConcatenateWithDelimiter(" ",
                                                         EwfTable.CssElementCreator.AllCellAlignmentsClass,
                                                         TableCellVerticalAlignmentOps.Class(VerticalAlignment),
                                                         CssElementCreator.ItemCssClass)
            }

            .AddControlsReturnThis(i);

            row.Cells.AddRange(cells.ToArray());
        }