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); }
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)); }
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)); }
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)); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }