Objects

objects/table/style

#include "dxfio/objects/table/style.hpp"

In DxfIO::Objects::Table

struct Border

One border of a cell. Its groups depend on the border; each member gives them in the order top, inside horizontal, bottom, left, inside vertical, right.

FieldType and defaultMeaning
Lineweightint{Lineweights::Byblock}The lineweight in hundredths of a millimeter, or -1 ByLayer, -2 ByBlock, -3 the default. Group 274 to 279 by border.
Visiblebool{true}Whether the border is drawn. Group 284 to 289 by border.
ColorintThe AutoCAD Color Index of the border. Group 64 to 69 by border.

struct Cell

How the cells of one kind of row are drawn: their text, fill and borders.

FieldType and defaultMeaning
Stylestd::stringThe name of the text style. Group 7.
Heightdouble{Table::Height}The height of the text. Group 140.
Alignmentint{1}Where text stands in the cell: 1 to 3 top left to top right, 4 to 6 middle, 7 to 9 bottom. Group 170.
ColorintThe AutoCAD Color Index of the text. Group 62.
Fillint{Colors::White}The AutoCAD Color Index of the background. Group 63.
FilledboolWhether the background is filled. Group 283.
Typeint{General}The type of the cell's data, such as 512 for general. Group 90, from R2007.
UnitintThe unit of the cell's data. Group 91, from R2007.
Formatstd::stringThe format of the cell's data. Group 1, from R2007.
TopBorderThe top border.
MiddleBorderThe horizontal borders between rows.
BottomBorderThe bottom border.
LeftBorderThe left border.
CenterBorderThe vertical borders between columns.
RightBorderThe right border.

struct TableStyleTABLESTYLE

A TABLESTYLE: how a table draws its title, header and data rows, named by its entry in the table style dictionary.

FieldType and defaultMeaning
BaseDxfIO::BaseThe handle, owner, reactors and extended data.
RevisionintA version number, 0 as AutoCAD writes it. Group 280, the first, from R2010.
Descriptionstd::stringThe style's description; AutoCAD writes its name here. Group 3.
FlowintWhich way the table grows: 0 down, 1 up. Group 70.
FlagsintFlags, 0 in what AutoCAD writes. Group 71.
Horizontaldouble{Table::Margin}The margin left and right of text in a cell. Group 40.
Verticaldouble{Table::Margin}The margin above and below text in a cell. Group 41.
UntitledboolWhether the title row is left out. Group 280.
HeadlessboolWhether the header row is left out. Group 281.
Cellsstd::vector<Table::Cell>The cell styles of the data, title and header rows, in that order.

Constants

Generalint = 512A cell data type: general, any value.
Heightdouble = 4.5The text height of a new cell style.
Margindouble = 1.5The cell margins of a new table style.