Exemplo n.º 1
0
 internal TableStyle(TableBordersStyle borderStyle, TableVisibleBorders shownBorders, bool escapeXml, int leftMargin, string prompt)
 {
     BorderStyle   = borderStyle;
     _shownBorders = shownBorders;
     _escapeXml    = escapeXml;
     _prompt       = prompt ?? (leftMargin > 0 ? Filler.GetFiller(leftMargin) : string.Empty);
 }
Exemplo n.º 2
0
 internal string RenderMiddleSeparator(IList <Column> columns, TableBordersStyle tiles, Row upperRow, Row lowerRow)
 {
     return(RenderHorizontalSeparator(columns, tiles.MiddleLeftCorner,
                                      tiles.MiddleCenterCorner, tiles.MiddleRightCorner, tiles.Middle, upperRow,
                                      lowerRow, tiles.UpperColumnSpan, tiles.LowerColumnSpan,
                                      tiles.CenterWidth));
 }
Exemplo n.º 3
0
 internal string RenderBottomBorder(IList <Column> columns, TableBordersStyle tiles, Row upperRow)
 {
     return(RenderHorizontalSeparator(columns, tiles.BottomLeftCorner,
                                      tiles.BottomCenterCorner, tiles.BottomRightCorner, tiles.Bottom, upperRow,
                                      null, tiles.BottomCenterCorner, null, tiles.CenterWidth));
 }
Exemplo n.º 4
0
 internal string RenderTopBorder(IList <Column> columns, TableBordersStyle tiles, Row lowerRow)
 {
     return(RenderHorizontalSeparator(columns, tiles.TopLeftCorner,
                                      tiles.TopCenterCorner, tiles.TopRightCorner, tiles.Top, null,
                                      lowerRow, null, tiles.TopCenterCorner, tiles.CenterWidth));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of TextTable class
 /// </summary>
 /// <param name="columnsCount">The columns count</param>
 /// <param name="borderStyle">The table border style</param>
 /// <param name="visibleBorders">The table visible borders</param>
 /// <param name="escapeXml">true if xml content must be escaped</param>
 /// <param name="prompt">The table prompt string</param>
 public TextTable(int columnsCount, TableBordersStyle borderStyle, TableVisibleBorders visibleBorders, bool escapeXml, string prompt)
 {
     Initialize(columnsCount);
     _tableStyle = new TableStyle(borderStyle, visibleBorders, escapeXml, 0, prompt);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of TextTable class
 /// </summary>
 /// <param name="columnsCount">The columns count</param>
 /// <param name="borderStyle">The table border style</param>
 /// <param name="visibleBorders">The table visible borders</param>
 /// <param name="escapeXml">true if xml content must be escaped</param>
 /// <param name="leftMargin">The table left margin</param>
 public TextTable(int columnsCount, TableBordersStyle borderStyle, TableVisibleBorders visibleBorders, bool escapeXml, int leftMargin)
 {
     Initialize(columnsCount);
     _tableStyle = new TableStyle(borderStyle, visibleBorders, escapeXml, leftMargin, null);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of TextTable class
 /// </summary>
 /// <param name="columnsCount">The columns count</param>
 /// <param name="borderStyle">The table border style</param>
 /// <param name="visibleBorders">The table visible borders</param>
 public TextTable(int columnsCount, TableBordersStyle borderStyle, TableVisibleBorders visibleBorders)
 {
     Initialize(columnsCount);
     _tableStyle = new TableStyle(borderStyle, visibleBorders, false, 0, null);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of TextTable class
 /// </summary>
 /// <param name="columnsCount">The columns count</param>
 /// <param name="borderStyle">The table border style</param>
 public TextTable(int columnsCount, TableBordersStyle borderStyle)
 {
     Initialize(columnsCount);
     _tableStyle = new TableStyle(borderStyle, TableVisibleBorders.SURROUND_HEADER_AND_COLUMNS, false, 0, null);
 }