#include <Wt/WTableColumn>
Public Member Functions | |
WTable * | table () const |
The table to which this column belongs. | |
int | columnNum () const |
The column number of this column in the table. | |
void | setWidth (const WLength &width) |
Set the column width. | |
WLength | width () const |
Get the column width. | |
void | setStyleClass (const WString &style) |
Set the CSS style class for this column. | |
const WString & | styleClass () const |
Get the CSS style class for this column. |
A WTableColumn is returned by WTable::columnAt() and managing various properties of a single column in a table (it is however not a widget).
You cannot access table cells through the column. Instead, to access table cells, see WTable::elementAt().
A table column corresponds to the HTML <col>
tag.
WTable* Wt::WTableColumn::table | ( | ) | const [inline] |
int Wt::WTableColumn::columnNum | ( | ) | const |
void Wt::WTableColumn::setWidth | ( | const WLength & | width | ) |
Set the column width.
The default column width is WLength::Auto.
WLength Wt::WTableColumn::width | ( | ) | const |
void Wt::WTableColumn::setStyleClass | ( | const WString & | style | ) |
Set the CSS style class for this column.
The style is inherited by all table cells in this column.
const WString& Wt::WTableColumn::styleClass | ( | ) | const [inline] |