public string BuildCodeFormattedString(TableCellRenderSpecificationExtended spec)
        {
            var alignment    = spec.Alignment;
            var maximumWidth = spec.MaximumWidth;
            var encodedText  = GetEncodedText();

            return(encodedText.Align(alignment, maximumWidth));
        }
Exemple #2
0
            private static string BuildDividerCell(TableCellRenderSpecificationExtended spec)
            {
                var dashes = new string('-', spec.MaximumWidth);

                switch (spec.Alignment)
                {
                case TableColumnAlignment.Left:
                    return(":" + dashes + " ");

                case TableColumnAlignment.Center:
                    return(":" + dashes + ":");

                case TableColumnAlignment.Right:
                    return(" " + dashes + ":");

                default:
                    return(" " + dashes + " ");
                }
            }
Exemple #3
0
 public string BuildCodeFormattedString(TableCellRenderSpecificationExtended spec)
 {
     return("");
 }