Exemple #1
0
            private string BuildCellMarkdownCode(int column, ITableCellExtended cell)
            {
                var columnSpec   = _columnRenderSpecs[column];
                var maximumWidth = columnSpec.MaximumWidth;

                var cellText          = cell.BuildCodeFormattedString(new TableCellRenderSpecificationExtended(columnSpec.Alignment, maximumWidth));
                var truncatedCellText = cellText.Length > maximumWidth?cellText.Substring(0, maximumWidth) : cellText.PadRight(maximumWidth);

                return(truncatedCellText);
            }
 public TableColumnExtended()
 {
     _headerCell    = new EmptyTableCellExtended();
     _subHeaderCell = new EmptyTableCellExtended();
 }