Пример #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);
 }
Пример #2
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);
 }
Пример #3
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);
 }
Пример #4
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);
 }