Class TableView.TableStyle
Defines rendering options that affect how the table is displayed.
public class TableView.TableStyle
- Inheritance
-
TableView.TableStyle
- Inherited Members
Properties
- AlwaysShowHeaders
When scrolling down always lock the column headers in place as the first row of the table
- ColumnStyles
Collection of columns for which you want special rendering (e.g. custom column lengths, text alignment etc)
- ExpandLastColumn
Determines rendering when the last column in the table is visible but it's content or MaxWidth is less than the remaining space in the control. True (the default) will expand the column to fill the remaining bounds of the control. False will draw a column ending line and leave a blank column that cannot be selected in the remaining space.
- InvertSelectedCellFirstCharacter
True to invert the colors of the first symbol of the selected cell in the TableView. This gives the appearance of a cursor for when the ConsoleDriver doesn't otherwise show this
- RowColorGetter
Delegate for coloring specific rows in a different color. For cell color ColorGetter
- ShowHorizontalHeaderOverline
True to render a solid line above the headers
- ShowHorizontalHeaderUnderline
True to render a solid line under the headers
- ShowHorizontalScrollIndicators
True to render a arrows on the right/left of the table when there are more column(s) that can be scrolled to. Requires ShowHorizontalHeaderUnderline to be true. Defaults to true
- ShowVerticalCellLines
True to render a solid line vertical line between cells
- ShowVerticalHeaderLines
True to render a solid line vertical line between headers
- SmoothHorizontalScrolling
Determines how ColumnOffset is updated when scrolling right off the end of the currently visible area.
If true then when scrolling right the scroll offset is increased the minimum required to show the new column. This may be slow if you have an incredibly large number of columns in your table and/or slow RepresentationGetter implementations
If false then scroll offset is set to the currently selected column (i.e. PageRight).
Methods
- GetColumnStyleIfAny(DataColumn)
Returns the entry from ColumnStyles for the given
col
or null if no custom styling is defined for it
- GetOrCreateColumnStyle(DataColumn)
Returns an existing TableView.ColumnStyle for the given
col
or creates a new one with default options